Fixed WGL not re-creating for sRGB hint.

Fixes #312.
This commit is contained in:
Doug Binks
2014-06-23 20:29:25 +02:00
committed by Camilla Berglund
parent 46a56ea742
commit 55b5ca0bcc
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -571,6 +571,18 @@ int _glfwAnalyzeContext(const _GLFWwindow* window,
}
}
if (fbconfig->sRGB)
{
// We want sRGB, but can we get it?
// sRGB is not a hard constraint, so otherwise we just don't care
if (window->wgl.ARB_framebuffer_sRGB && window->wgl.ARB_pixel_format)
{
// We appear to have both the extension and the means to ask for it
required = GL_TRUE;
}
}
if (required)
return _GLFW_RECREATION_REQUIRED;