Browse Source

Added explicit non-support for sRGB on EGL.

Camilla Berglund 12 years ago
parent
commit
280782a2a5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/egl_context.c

+ 4 - 0
src/egl_context.c

@@ -157,6 +157,10 @@ static _GLFWfbconfig* getFBConfigs(_GLFWwindow* window,
 
         f->samples = getConfigAttrib(configs[i], EGL_SAMPLES);
 
+        // NOTE: There does not appear to be any way to request sRGB
+        // framebuffers for OpenGL or GLES contexts; only for OpenVG ones
+        f->sRGB = GL_FALSE;
+
         f->platformID = (GLFWintptr) getConfigAttrib(configs[i], EGL_CONFIG_ID);
 
         (*found)++;