fix osx close
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user