Browse Source

fix iPhone compilation issue with OpenGL ES 2.0

rdb 15 years ago
parent
commit
e6311cb5cf
1 changed files with 7 additions and 2 deletions
  1. 7 2
      panda/src/gles2gsg/gles2gsg.h

+ 7 - 2
panda/src/gles2gsg/gles2gsg.h

@@ -41,8 +41,13 @@
   #define OPENGLES_2
 #endif
 
-#include <GLES2/gl2.h>
-#include <GLES2/gl2ext.h>
+#ifdef IS_OSX
+  #include <OpenGLES/ES2/gl.h>
+  #include <OpenGLES/ES2/glext.h>
+#else
+  #include <GLES2/gl2.h>
+  #include <GLES2/gl2ext.h>
+#endif
 
 // This helps to keep the source clean of hundreds of #ifdefs.
 typedef char GLchar;