diff --git a/src/app.cpp b/src/app.cpp index 949502e..cf5b1c0 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -137,7 +137,9 @@ bool App::request_close() destroy_window(); //PostQuitMessage(0); #elif __OSX__ - [osx_view close]; + dispatch_async(dispatch_get_main_queue(), ^{ + [osx_view close]; + }); #elif __LINUX__ glfwSetWindowShouldClose(glfw_window, GLFW_TRUE); #endif