changeset 4183:39e748f251c6 SDL-1.2

Patched X11 code to compile on Mac OS X 10.6 SDK.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 12 Sep 2009 06:25:36 +0000
parents 6512a61c2c73
children ed5913896653
files src/video/x11/SDL_x11gl.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
 {