Use the correct parameter for GLX_VISUAL_CAVEAT_EXT
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401802
This commit is contained in:
parent
3470d1df70
commit
15bcc2d457
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@
|
||||||
#ifndef GLX_EXT_visual_rating
|
#ifndef GLX_EXT_visual_rating
|
||||||
#define GLX_EXT_visual_rating
|
#define GLX_EXT_visual_rating
|
||||||
#define GLX_VISUAL_CAVEAT_EXT 0x20
|
#define GLX_VISUAL_CAVEAT_EXT 0x20
|
||||||
|
#define GLX_NONE_EXT 0x8000
|
||||||
#define GLX_SLOW_VISUAL_EXT 0x8001
|
#define GLX_SLOW_VISUAL_EXT 0x8001
|
||||||
#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
|
#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
|
||||||
#endif
|
#endif
|
||||||
|
@ -182,7 +183,7 @@ XVisualInfo *X11_GL_GetVisual(_THIS)
|
||||||
if( this->gl_config.accelerated >= 0 &&
|
if( this->gl_config.accelerated >= 0 &&
|
||||||
glXExtensionSupported(this, "GLX_EXT_visual_rating") ) {
|
glXExtensionSupported(this, "GLX_EXT_visual_rating") ) {
|
||||||
attribs[i++] = GLX_VISUAL_CAVEAT_EXT;
|
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 */
|
#ifdef GLX_DIRECT_COLOR /* Try for a DirectColor visual for gamma support */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue