|
|
@ -522,6 +522,8 @@ GLFWAPI void glfwSetGammaRamp(GLFWmonitor* handle, const GLFWgammaramp* ramp) |
|
|
|
assert(ramp->green != NULL); |
|
|
|
assert(ramp->green != NULL); |
|
|
|
assert(ramp->blue != NULL); |
|
|
|
assert(ramp->blue != NULL); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_GLFW_REQUIRE_INIT(); |
|
|
|
|
|
|
|
|
|
|
|
if (ramp->size <= 0) |
|
|
|
if (ramp->size <= 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_glfwInputError(GLFW_INVALID_VALUE, |
|
|
|
_glfwInputError(GLFW_INVALID_VALUE, |
|
|
@ -530,8 +532,6 @@ GLFWAPI void glfwSetGammaRamp(GLFWmonitor* handle, const GLFWgammaramp* ramp) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_GLFW_REQUIRE_INIT(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!monitor->originalRamp.size) |
|
|
|
if (!monitor->originalRamp.size) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!_glfw.platform.getGammaRamp(monitor, &monitor->originalRamp)) |
|
|
|
if (!_glfw.platform.getGammaRamp(monitor, &monitor->originalRamp)) |
|
|
|