Browse Source

Merge pull request #111301 from stuartcarnie/macos_disable_opengl

macOS: Move includes inside `#ifdef` so OpenGL can be disabled
Rémi Verschelde 1 week ago
parent
commit
e277b3f0ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      platform/macos/embedded_gl_manager.mm

+ 2 - 2
platform/macos/embedded_gl_manager.mm

@@ -30,11 +30,11 @@
 
 #import "embedded_gl_manager.h"
 
+#if defined(MACOS_ENABLED) && defined(GLES3_ENABLED)
+
 #import "drivers/gles3/storage/texture_storage.h"
 #import "platform_gl.h"
 
-#if defined(MACOS_ENABLED) && defined(GLES3_ENABLED)
-
 #import <QuartzCore/QuartzCore.h>
 #include <dlfcn.h>