mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
_glfwAnalyzeContext adds check for sRGB
This commit is contained in:
parent
215924f797
commit
ad3a40f35b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user