Skip to content

Commit

Permalink
Use the correct parameter for GLX_VISUAL_CAVEAT_EXT
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 16, 2006
1 parent 7fc8e1d commit 5f44488
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11gl.c
Expand Up @@ -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
Expand Down Expand Up @@ -182,7 +183,7 @@ XVisualInfo *X11_GL_GetVisual(_THIS)
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 */
Expand Down

0 comments on commit 5f44488

Please sign in to comment.