From 1590c59131aeaaded46555b4792120631ad99d1e Mon Sep 17 00:00:00 2001 From: Luflosi Date: Sat, 20 Jul 2019 23:17:53 -0500 Subject: [PATCH] Fix assertion for glfwSetGamma value From https://github.com/glfw/glfw/commit/751c6f9a2792bfc0c09cd381293db21c5a15a9ed. --- glfw/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/monitor.c b/glfw/monitor.c index 3a5f72fc4..eb72afb58 100644 --- a/glfw/monitor.c +++ b/glfw/monitor.c @@ -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();