Merge branch 'fix_assertion' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-07-21 09:54:15 +05:30
commit 78dec3d698
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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();