Cocoa: Fix window creation blocking after re-init

From 2fbb560eb7.
This commit is contained in:
Luflosi 2019-10-07 22:10:45 +02:00
parent adc1c06089
commit 7ddbb613fe
No known key found for this signature in database
GPG Key ID: 14140F703B7D8362

View File

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