mirror of https://github.com/encounter/SDL.git
X11: Always specify "True" if setting GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB.
Fixes Bugzilla #2897.
This commit is contained in:
parent
83aeb31d12
commit
f3590aba15
|
@ -474,9 +474,7 @@ X11_GL_GetAttributes(_THIS, Display * display, int screen, int * attribs, int si
|
||||||
|
|
||||||
if (_this->gl_config.framebuffer_srgb_capable) {
|
if (_this->gl_config.framebuffer_srgb_capable) {
|
||||||
attribs[i++] = GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB;
|
attribs[i++] = GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB;
|
||||||
if( for_FBConfig ) {
|
attribs[i++] = True; /* always needed, for_FBConfig or not! */
|
||||||
attribs[i++] = True;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_this->gl_config.accelerated >= 0 &&
|
if (_this->gl_config.accelerated >= 0 &&
|
||||||
|
|
Loading…
Reference in New Issue