# HG changeset patch # User Ryan C. Gordon # Date 1252736736 0 # Node ID 39e748f251c67f83b72c5cda1f5f664f9a862af9 # Parent 6512a61c2c73b495efe80ace249f7865df4c0ea4 Patched X11 code to compile on Mac OS X 10.6 SDK. diff -r 6512a61c2c73 -r 39e748f251c6 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) {