Skip to content

Commit

Permalink
IGL: Shell tidy up
Browse files Browse the repository at this point in the history
Reviewed By: nlutsenko

Differential Revision: D68648526

fbshipit-source-id: f1b412f95a7edc6b9c86e4ede33a994bec664634
  • Loading branch information
Eric Griffith authored and facebook-github-bot committed Jan 26, 2025
1 parent c446e63 commit e03e9bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shell/renderSessions/GPUStressSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static uint32_t arc4random_() {
return static_cast<uint32_t>(rand()) * (0xffffffff / RAND_MAX);
}

#if ANDROID
#if IGL_PLATFORM_ANDROID

#include <sys/syscall.h>
#include <unistd.h>
Expand Down
6 changes: 4 additions & 2 deletions shell/windows/opengl/AutoContextReleaseDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

#pragma once

#include <igl/Config.h>

// clang-format off
#if defined(_WIN32)
#if IGL_PLATFORM_WINDOWS
#include <igl/opengl/wgl/Context.h>
#include <igl/opengl/wgl/Device.h>
#elif IGL_PLATFORM_LINUX
Expand All @@ -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<igl::opengl::IContext> context) :
Device(std::move(context)), platformDevice_(*this) {}
Expand Down

0 comments on commit e03e9bd

Please sign in to comment.