Browse Source

Fix compile issue on Mac OS X with GLhandleARB

rdb 11 years ago
parent
commit
274659cdc3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/glstuff/panda_glext.h

+ 4 - 0
panda/src/glstuff/panda_glext.h

@@ -5566,8 +5566,12 @@ typedef ptrdiff_t GLsizeiptrARB;
 #ifndef GL_ARB_shader_objects
 #ifndef GL_ARB_shader_objects
 /* GL types for program/shader text and shader object handles */
 /* GL types for program/shader text and shader object handles */
 typedef char GLcharARB;
 typedef char GLcharARB;
+#ifdef __APPLE__
+typedef void *GLhandleARB;
+#else
 typedef unsigned int GLhandleARB;
 typedef unsigned int GLhandleARB;
 #endif
 #endif
+#endif
 
 
 /* GL type for "half" precision (s10e5) float data in host memory */
 /* GL type for "half" precision (s10e5) float data in host memory */
 #ifndef GL_ARB_half_float_pixel
 #ifndef GL_ARB_half_float_pixel