From 751c6f9a2792bfc0c09cd381293db21c5a15a9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 17 Dec 2018 17:04:29 +0100 Subject: [PATCH] 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. --- src/monitor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/monitor.c b/src/monitor.c index f7de5500..0be3d205 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -431,8 +431,7 @@ GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma) 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();