Patched X11 code to compile on Mac OS X 10.6 SDK. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sat, 12 Sep 2009 06:25:36 +0000
branchSDL-1.2
changeset 4183 39e748f251c6
parent 4182 6512a61c2c73
child 4184 ed5913896653
Patched X11 code to compile on Mac OS X 10.6 SDK.
src/video/x11/SDL_x11gl.c
--- a/src/video/x11/SDL_x11gl.c	Fri Aug 07 10:20:40 2009 +0000
+++ b/src/video/x11/SDL_x11gl.c	Sat Sep 12 06:25:36 2009 +0000
@@ -45,14 +45,21 @@
 #define GLX_SAMPLES_ARB                    100001
 #endif
 
-#ifndef GLX_EXT_visual_rating
-#define GLX_EXT_visual_rating
+/* GLX_EXT_visual_rating stuff that might not be in the system headers... */
+#ifndef GLX_VISUAL_CAVEAT_EXT
 #define GLX_VISUAL_CAVEAT_EXT              0x20
+#endif
+#ifndef GLX_NONE_EXT
 #define GLX_NONE_EXT                       0x8000
+#endif
+#ifndef GLX_SLOW_VISUAL_EXT
 #define GLX_SLOW_VISUAL_EXT                0x8001
+#endif
+#ifndef GLX_NON_CONFORMANT_VISUAL_EXT
 #define GLX_NON_CONFORMANT_VISUAL_EXT      0x800D
 #endif
 
+
 #if SDL_VIDEO_OPENGL_GLX
 static int glXExtensionSupported(_THIS, const char *extension)
 {