Fix assertion for glfwSetGamma value

From 751c6f9a27.
This commit is contained in:
Luflosi
2019-07-20 23:17:53 -05:00
parent b26f79998a
commit 1590c59131

2
glfw/monitor.c vendored
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();