Only restore gamma ramp if it has been changed.

This commit is contained in:
Camilla Berglund
2012-05-24 11:46:51 +02:00
parent f5eb79ed28
commit 79bef68511
5 changed files with 7 additions and 3 deletions
+1
View File
@@ -112,5 +112,6 @@ GLFWAPI void glfwSetGammaRamp(const GLFWgammaramp* ramp)
_glfwPlatformSetGammaRamp(ramp);
_glfwLibrary.currentRamp = *ramp;
_glfwLibrary.rampChanged = GL_TRUE;
}