1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

Removed superfluous test for RandR version.

This commit is contained in:
Camilla Berglund 2014-01-22 16:34:43 +01:00
parent 611006af18
commit a4b8b0f114

View File

@ -38,11 +38,7 @@
// //
void _glfwInitGammaRamp(void) void _glfwInitGammaRamp(void)
{ {
// RandR gamma support is only available with version 1.2 and above if (_glfw.x11.randr.available)
if (_glfw.x11.randr.available &&
(_glfw.x11.randr.versionMajor > 1 ||
(_glfw.x11.randr.versionMajor == 1 &&
_glfw.x11.randr.versionMinor >= 2)))
{ {
// FIXME: Assumes that all monitors have the same size gamma tables // FIXME: Assumes that all monitors have the same size gamma tables
// This is reasonable as I suspect the that if they did differ, it // This is reasonable as I suspect the that if they did differ, it