# HG changeset patch # User Sam Lantinga # Date 1147796722 0 # Node ID 0495a8e985959dd04face7e046f3327a974a6d82 # Parent c6a447c9858496190fbf75fd14ec6be8bdcf33c7 Use the correct parameter for GLX_VISUAL_CAVEAT_EXT diff -r c6a447c98584 -r 0495a8e98595 src/video/x11/SDL_x11gl.c --- a/src/video/x11/SDL_x11gl.c Tue May 16 08:00:25 2006 +0000 +++ b/src/video/x11/SDL_x11gl.c Tue May 16 16:25:22 2006 +0000 @@ -46,6 +46,7 @@ #ifndef GLX_EXT_visual_rating #define GLX_EXT_visual_rating #define GLX_VISUAL_CAVEAT_EXT 0x20 +#define GLX_NONE_EXT 0x8000 #define GLX_SLOW_VISUAL_EXT 0x8001 #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D #endif @@ -182,7 +183,7 @@ if( this->gl_config.accelerated >= 0 && glXExtensionSupported(this, "GLX_EXT_visual_rating") ) { attribs[i++] = GLX_VISUAL_CAVEAT_EXT; - attribs[i++] = this->gl_config.accelerated ? GLX_NONE : GLX_DONT_CARE; + attribs[i++] = GLX_NONE_EXT; } #ifdef GLX_DIRECT_COLOR /* Try for a DirectColor visual for gamma support */