mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 09:01:46 +00:00
Set the current gamma ramp to original gamma ramp at start.
This commit is contained in:
parent
02200c635e
commit
5ac752d79d
@ -228,6 +228,7 @@ int _glfwPlatformInit(void)
|
||||
// Save the original gamma ramp
|
||||
_glfwLibrary.originalRampSize = CGDisplayGammaTableCapacity(CGMainDisplayID());
|
||||
_glfwPlatformGetGammaRamp(&_glfwLibrary.originalRamp);
|
||||
_glfwLibrary.currentRamp = _glfwLibrary.originalRamp;
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
@ -163,6 +163,7 @@ int _glfwPlatformInit(void)
|
||||
// Save the original gamma ramp
|
||||
_glfwLibrary.originalRampSize = 256;
|
||||
_glfwPlatformGetGammaRamp(&_glfwLibrary.originalRamp);
|
||||
_glfwLibrary.currentRamp = _glfwLibrary.originalRamp;
|
||||
|
||||
_glfwInitTimer();
|
||||
|
||||
|
@ -502,6 +502,7 @@ static void initGammaRamp(void)
|
||||
|
||||
// Save the original gamma ramp
|
||||
_glfwPlatformGetGammaRamp(&_glfwLibrary.originalRamp);
|
||||
_glfwLibrary.currentRamp = _glfwLibrary.originalRamp;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user