From f3590aba15d35de88b72df383f82d7b0473d2752 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 6 Apr 2015 00:11:58 -0400 Subject: [PATCH] X11: Always specify "True" if setting GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB. Fixes Bugzilla #2897. --- src/video/x11/SDL_x11opengl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index a19d23d40bdee..7bc3256bd06eb 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -474,9 +474,7 @@ X11_GL_GetAttributes(_THIS, Display * display, int screen, int * attribs, int si if (_this->gl_config.framebuffer_srgb_capable) { attribs[i++] = GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB; - if( for_FBConfig ) { - attribs[i++] = True; - } + attribs[i++] = True; /* always needed, for_FBConfig or not! */ } if (_this->gl_config.accelerated >= 0 &&