title: Can SDL create a sRGB OpenGL context?
body: <p>The documentation of SDL does not seem to mention much about color spaces.  I don't see any SRGB flag/parameter for <a href="http://sdl.beuc.net/sdl.wiki/SDL_SetVideoMode" rel="nofollow"><code>SDL_SetVideoMode</code></a> or <a href="http://sdl.beuc.net/sdl.wiki/SDL_GLattr" rel="nofollow"><code>SDL_GL_SetAttribute</code></a>.  Is it possible at all for SDL to ask OpenGL to perform the color correction when writing on the FrameBuffer 0?  <a href="http://www.arcsynthesis.org/gltut/Texturing/Tut16%20Free%20Gamma%20Correction.html" rel="nofollow">GLUT seems to be able to provide that functionality</a>.</p>
  
  <p>If SDL cannot do it, what is the usual workaround?  I am considering rendering to a sRGB texture with <code>GL_FRAMEBUFFER_SRGB</code> enabled, and then rendering that into the FrameBuffer 0 with <code>FRAMEBUFFER_SRGB</code> disabled.  Any better idea?</p>