diff src/video/x11/SDL_x11gl.c @ 1841:0495a8e98595

Use the correct parameter for GLX_VISUAL_CAVEAT_EXT
author Sam Lantinga <slouken@libsdl.org>
date Tue, 16 May 2006 16:25:22 +0000
parents eacc5bc01d1c
children b42823412c3b
line wrap: on
line diff
--- 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 */