Fix assertion for glfwSetGamma value

From https://github.com/glfw/glfw/commit/751c6f9a2792bfc0c09cd381293db21c5a15a9ed.
This commit is contained in:
Luflosi
2019-07-20 23:17:58 -05:00
parent b26f79998a
commit 1590c59131
+1 -1
View File
@@ -452,7 +452,7 @@ GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma)
GLFWgammaramp ramp;
const GLFWgammaramp* original;
assert(handle != NULL);
assert(gamma >= 0.f);
assert(gamma > 0.f);
assert(gamma <= FLT_MAX);
_GLFW_REQUIRE_INIT();