From e03e9bdd35fdb98537b64a18b204620a0c630075 Mon Sep 17 00:00:00 2001 From: Eric Griffith Date: Sat, 25 Jan 2025 18:31:52 -0800 Subject: [PATCH] IGL: Shell tidy up Reviewed By: nlutsenko Differential Revision: D68648526 fbshipit-source-id: f1b412f95a7edc6b9c86e4ede33a994bec664634 --- shell/renderSessions/GPUStressSession.cpp | 2 +- shell/windows/opengl/AutoContextReleaseDevice.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/shell/renderSessions/GPUStressSession.cpp b/shell/renderSessions/GPUStressSession.cpp index e99176aa4cb..bb7ed7d229c 100644 --- a/shell/renderSessions/GPUStressSession.cpp +++ b/shell/renderSessions/GPUStressSession.cpp @@ -33,7 +33,7 @@ static uint32_t arc4random_() { return static_cast(rand()) * (0xffffffff / RAND_MAX); } -#if ANDROID +#if IGL_PLATFORM_ANDROID #include #include diff --git a/shell/windows/opengl/AutoContextReleaseDevice.h b/shell/windows/opengl/AutoContextReleaseDevice.h index ed0b60e305d..d51bce3a8a6 100644 --- a/shell/windows/opengl/AutoContextReleaseDevice.h +++ b/shell/windows/opengl/AutoContextReleaseDevice.h @@ -7,8 +7,10 @@ #pragma once +#include + // clang-format off -#if defined(_WIN32) +#if IGL_PLATFORM_WINDOWS #include #include #elif IGL_PLATFORM_LINUX @@ -19,7 +21,7 @@ namespace igl::shell::util { -#if defined(_WIN32) +#if IGL_PLATFORM_WINDOWS struct WGLDevice final : public igl::opengl::Device { explicit WGLDevice(std::unique_ptr context) : Device(std::move(context)), platformDevice_(*this) {}