fix osx close

This commit is contained in:
2019-10-20 17:26:49 +02:00
parent ad03c601ad
commit 22a035f227

View File

@@ -137,7 +137,9 @@ bool App::request_close()
destroy_window(); destroy_window();
//PostQuitMessage(0); //PostQuitMessage(0);
#elif __OSX__ #elif __OSX__
dispatch_async(dispatch_get_main_queue(), ^{
[osx_view close]; [osx_view close];
});
#elif __LINUX__ #elif __LINUX__
glfwSetWindowShouldClose(glfw_window, GLFW_TRUE); glfwSetWindowShouldClose(glfw_window, GLFW_TRUE);
#endif #endif