1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-12-03 07:28:51 -05:00

Removed gamma API warning prints.

This commit is contained in:
Camilla Berglund 2012-05-24 11:39:16 +02:00
parent 1a37788143
commit f5eb79ed28

View File

@ -31,7 +31,6 @@
#include <limits.h> #include <limits.h>
#include <string.h> #include <string.h>
#include <stdio.h>
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
@ -65,8 +64,6 @@ void _glfwInitGammaRamp(void)
// This is probably Nvidia RandR with broken gamma support // This is probably Nvidia RandR with broken gamma support
// Flag it as useless and try Xf86VidMode below, if available // Flag it as useless and try Xf86VidMode below, if available
_glfwLibrary.X11.RandR.gammaBroken = GL_TRUE; _glfwLibrary.X11.RandR.gammaBroken = GL_TRUE;
fprintf(stderr,
"Ignoring broken nVidia implementation of RandR 1.2+ gamma\n");
} }
XRRFreeScreenResources(rr); XRRFreeScreenResources(rr);
@ -84,12 +81,12 @@ void _glfwInitGammaRamp(void)
} }
#endif /*_GLFW_HAS_XF86VIDMODE*/ #endif /*_GLFW_HAS_XF86VIDMODE*/
if (!_glfwLibrary.originalRampSize) if (_glfwLibrary.originalRampSize)
fprintf(stderr, "No supported gamma ramp API found\n"); {
// Save the original gamma ramp // Save the original gamma ramp
_glfwPlatformGetGammaRamp(&_glfwLibrary.originalRamp); _glfwPlatformGetGammaRamp(&_glfwLibrary.originalRamp);
_glfwLibrary.currentRamp = _glfwLibrary.originalRamp; _glfwLibrary.currentRamp = _glfwLibrary.originalRamp;
}
} }