Prechádzať zdrojové kódy

imgui_impl_opengl3.cpp Using GLES3 on IOS instead of gl3w. (#2002, #1873)
Not modifying the main.cpp yet because we need to test GL ES 3 context creation on iOS (only imgui_impl_opengl3.cpp was tested).

omar 7 rokov pred
rodič
commit
35124cdd07
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      examples/imgui_impl_opengl3.cpp

+ 4 - 1
examples/imgui_impl_opengl3.cpp

@@ -57,8 +57,11 @@
 #else
 #include <stdint.h>     // intptr_t
 #endif
+#if defined(__APPLE__)
+#include "TargetConditionals.h"
+#endif
 
-#ifdef __EMSCRIPTEN__
+#if (defined(__APPLE__) && TARGET_OS_IOS) || (defined(__EMSCRIPTEN__))
 #include <GLES3/gl3.h>  // Use GL ES 3
 #else
 // About OpenGL function loaders: