Replaced CFRelease with CGDisplayModeRelease.
This commit is contained in:
parent
c286c716cd
commit
5f854b2bbf
@ -116,11 +116,7 @@ int _glfwPlatformTerminate(void)
|
|||||||
// Restore the original gamma ramp
|
// Restore the original gamma ramp
|
||||||
_glfwPlatformSetGammaRamp(&_glfwLibrary.originalRamp);
|
_glfwPlatformSetGammaRamp(&_glfwLibrary.originalRamp);
|
||||||
|
|
||||||
if (_glfwLibrary.NS.desktopMode)
|
CGDisplayModeRelease(_glfwLibrary.NS.desktopMode);
|
||||||
{
|
|
||||||
CFRelease(_glfwLibrary.NS.desktopMode);
|
|
||||||
_glfwLibrary.NS.desktopMode = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
[NSApp setDelegate:nil];
|
[NSApp setDelegate:nil];
|
||||||
[_glfwLibrary.NS.delegate release];
|
[_glfwLibrary.NS.delegate release];
|
||||||
|
Loading…
Reference in New Issue
Block a user