Browse Source

glesgsg: Only use the iOS GLES framework when "BUILD_IPHONE" is defined

Sam Edwards 7 years ago
parent
commit
b8b86dc2f2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      panda/src/gles2gsg/gles2gsg.h
  2. 1 1
      panda/src/glesgsg/glesgsg.h

+ 1 - 1
panda/src/gles2gsg/gles2gsg.h

@@ -51,7 +51,7 @@
 // OpenGL ES 2 has no fixed-function pipeline.
 // OpenGL ES 2 has no fixed-function pipeline.
 #undef SUPPORT_FIXED_FUNCTION
 #undef SUPPORT_FIXED_FUNCTION
 
 
-#ifdef IS_OSX
+#ifdef BUILD_IPHONE
   #include <OpenGLES/ES2/gl.h>
   #include <OpenGLES/ES2/gl.h>
 // #include <OpenGLESES2glext.h>
 // #include <OpenGLESES2glext.h>
 #else
 #else

+ 1 - 1
panda/src/glesgsg/glesgsg.h

@@ -54,7 +54,7 @@
 #define __glext_h_
 #define __glext_h_
 #define ES1_GLEXT_H_GUARD
 #define ES1_GLEXT_H_GUARD
 
 
-#ifdef IS_OSX
+#ifdef BUILD_IPHONE
   #include <OpenGLES/ES1/gl.h>
   #include <OpenGLES/ES1/gl.h>
 // #include <OpenGLESES1glext.h>
 // #include <OpenGLESES1glext.h>
 #else
 #else