X11: Always specify "True" if setting GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 06 Apr 2015 00:11:58 -0400
changeset 9459f5b468964b0b
parent 9458 543298b36b28
child 9460 1aa9826bb1bd
child 9536 3c87b8f9dc58
X11: Always specify "True" if setting GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB.

Fixes Bugzilla #2897.
src/video/x11/SDL_x11opengl.c
     1.1 --- a/src/video/x11/SDL_x11opengl.c	Mon Apr 06 00:10:54 2015 -0400
     1.2 +++ b/src/video/x11/SDL_x11opengl.c	Mon Apr 06 00:11:58 2015 -0400
     1.3 @@ -474,9 +474,7 @@
     1.4  
     1.5      if (_this->gl_config.framebuffer_srgb_capable) {
     1.6          attribs[i++] = GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB;
     1.7 -        if( for_FBConfig ) {
     1.8 -            attribs[i++] = True;
     1.9 -        }
    1.10 +        attribs[i++] = True;  /* always needed, for_FBConfig or not! */
    1.11      }
    1.12  
    1.13      if (_this->gl_config.accelerated >= 0 &&