Use the correct parameter for GLX_VISUAL_CAVEAT_EXT
authorSam Lantinga <slouken@libsdl.org>
Tue, 16 May 2006 16:25:22 +0000
changeset 1841 0495a8e98595
parent 1840 c6a447c98584
child 1842 fea140a964b3
Use the correct parameter for GLX_VISUAL_CAVEAT_EXT
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 */