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 418339e748f251c6
parent 4182 6512a61c2c73
child 4184 ed5913896653
Patched X11 code to compile on Mac OS X 10.6 SDK.
src/video/x11/SDL_x11gl.c
     1.1 --- a/src/video/x11/SDL_x11gl.c	Fri Aug 07 10:20:40 2009 +0000
     1.2 +++ b/src/video/x11/SDL_x11gl.c	Sat Sep 12 06:25:36 2009 +0000
     1.3 @@ -45,14 +45,21 @@
     1.4  #define GLX_SAMPLES_ARB                    100001
     1.5  #endif
     1.6  
     1.7 -#ifndef GLX_EXT_visual_rating
     1.8 -#define GLX_EXT_visual_rating
     1.9 +/* GLX_EXT_visual_rating stuff that might not be in the system headers... */
    1.10 +#ifndef GLX_VISUAL_CAVEAT_EXT
    1.11  #define GLX_VISUAL_CAVEAT_EXT              0x20
    1.12 +#endif
    1.13 +#ifndef GLX_NONE_EXT
    1.14  #define GLX_NONE_EXT                       0x8000
    1.15 +#endif
    1.16 +#ifndef GLX_SLOW_VISUAL_EXT
    1.17  #define GLX_SLOW_VISUAL_EXT                0x8001
    1.18 +#endif
    1.19 +#ifndef GLX_NON_CONFORMANT_VISUAL_EXT
    1.20  #define GLX_NON_CONFORMANT_VISUAL_EXT      0x800D
    1.21  #endif
    1.22  
    1.23 +
    1.24  #if SDL_VIDEO_OPENGL_GLX
    1.25  static int glXExtensionSupported(_THIS, const char *extension)
    1.26  {