From cf4fdf26e4dbc107ca3b383570ea9474d26ca50c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 12 Sep 2009 06:25:36 +0000 Subject: [PATCH] Patched X11 code to compile on Mac OS X 10.6 SDK. --- src/video/x11/SDL_x11gl.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/video/x11/SDL_x11gl.c b/src/video/x11/SDL_x11gl.c index a4e0d3bc4..78e9982bd 100644 --- a/src/video/x11/SDL_x11gl.c +++ b/src/video/x11/SDL_x11gl.c @@ -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) {