Cocoa: Fix window creation blocking after re-init

Fixes #1439.
This commit is contained in:
Camilla Löwy 2019-02-25 02:41:05 +01:00
parent 7c3aaf8065
commit 2fbb560eb7

View File

@ -486,6 +486,9 @@ int _glfwPlatformInit(void)
toTarget:_glfw.ns.helper
withObject:nil];
if (NSApp)
_glfw.ns.finishedLaunching = GLFW_TRUE;
[NSApplication sharedApplication];
_glfw.ns.delegate = [[GLFWApplicationDelegate alloc] init];