Cocoa: Fix window creation blocking after re-init

From https://github.com/glfw/glfw/commit/2fbb560eb72fea695687d33066c91a329d6d0465.
This commit is contained in:
Luflosi
2019-10-08 13:41:10 +02:00
parent adc1c06089
commit 7ddbb613fe
+3
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];