From 280782a2a5d66cccb2597e407015ec753afa71f2 Mon Sep 17 00:00:00 2001
From: Camilla Berglund <elmindreda@elmindreda.org>
Date: Sun, 2 Dec 2012 16:29:56 +0100
Subject: [PATCH] Added explicit non-support for sRGB on EGL.

---
 src/egl_context.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/egl_context.c b/src/egl_context.c
index cf8ad77a..3c164520 100644
--- a/src/egl_context.c
+++ b/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)++;