瀏覽代碼

Removed superfluous test for RandR version.

Camilla Berglund 11 年之前
父節點
當前提交
a4b8b0f114
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/x11_gamma.c

+ 1 - 5
src/x11_gamma.c

@@ -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 &&
-        (_glfw.x11.randr.versionMajor > 1 ||
-         (_glfw.x11.randr.versionMajor == 1 &&
-          _glfw.x11.randr.versionMinor >= 2)))
+    if (_glfw.x11.randr.available)
     {
     {
         // 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