mirror of
https://github.com/glfw/glfw.git
synced 2026-02-20 22:23:12 +01:00
Moved autorelease pool back to glfwInit.
This commit is contained in:
@@ -78,6 +78,8 @@ static void changeToResourcesDirectory(void)
|
||||
|
||||
int _glfwPlatformInit(void)
|
||||
{
|
||||
_glfwLibrary.NS.autoreleasePool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
_glfwLibrary.NS.OpenGLFramework =
|
||||
CFBundleGetBundleWithIdentifier(CFSTR("com.apple.opengl"));
|
||||
if (_glfwLibrary.NS.OpenGLFramework == NULL)
|
||||
|
||||
@@ -600,8 +600,6 @@ static GLboolean initializeAppKit(void)
|
||||
if (NSApp)
|
||||
return GL_TRUE;
|
||||
|
||||
_glfwLibrary.NS.autoreleasePool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
// Implicitly create shared NSApplication instance
|
||||
[GLFWApplication sharedApplication];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user