commit | 751c6f9a2792bfc0c09cd381293db21c5a15a9ed | [log] [tgz] |
---|---|---|
author | Camilla Löwy <elmindreda@elmindreda.org> | Mon Dec 17 17:04:29 2018 +0100 |
committer | Camilla Löwy <elmindreda@elmindreda.org> | Wed Dec 26 14:48:40 2018 +0100 |
tree | 8c5c72bcefe8ef496bdf2a16352e65c299baa1cc | |
parent | 8c611fd5d06e19460b3632efb0ce09e1caeafe51 [diff] |
Fix assertions for glfwSetGamma value The NaN assert was implicit in the other ones. The lower bound assert incorrectly allowed a value of zero. Related to #1387.
diff --git a/src/monitor.c b/src/monitor.c index f7de550..0be3d20 100644 --- a/src/monitor.c +++ b/src/monitor.c
@@ -431,8 +431,7 @@ unsigned short values[256]; GLFWgammaramp ramp; assert(handle != NULL); - assert(gamma == gamma); - assert(gamma >= 0.f); + assert(gamma > 0.f); assert(gamma <= FLT_MAX); _GLFW_REQUIRE_INIT();