Apple uses a void* for GLhandleARB, not an unsigned int. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Thu, 04 Aug 2011 00:46:27 -0400
branchSDL-1.2
changeset 5626 5d3431bad5c7
parent 5623 181d53fc4e23
child 5627 a80f264754fb
Apple uses a void* for GLhandleARB, not an unsigned int. (transplanted from 68eb59d8baedbcfa99294f833611581860c37258)
include/SDL_opengl.h
--- a/include/SDL_opengl.h	Sun Aug 21 12:21:01 2011 -0400
+++ b/include/SDL_opengl.h	Thu Aug 04 00:46:27 2011 -0400
@@ -3121,8 +3121,12 @@
 #ifndef GL_ARB_shader_objects
 /* GL types for handling shader object handles and program/shader text */
 typedef char GLcharARB;		/* native character */
+#if defined(__APPLE__)
+typedef void *GLhandleARB;	/* shader object handle */
+#else
 typedef unsigned int GLhandleARB;	/* shader object handle */
 #endif
+#endif
 
 /* GL types for "half" precision (s10e5) float data in host memory */
 #ifndef GL_ARB_half_float_pixel