16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 00:49:19 +02:00

Merge pull request #89 from jakubg1/dev

Fix a segfault when closing on Wayland
This commit is contained in:
2026-04-14 20:46:55 +02:00
committed by GitHub

View File

@@ -678,6 +678,7 @@ void eu07_application::exit()
glfwDestroyWindow(window); glfwDestroyWindow(window);
} }
m_taskqueue.exit(); m_taskqueue.exit();
glfwPollEvents(); // TODO: This fixes a segfault on Wayland when closing. Remove after updating glfw to 3.5.
glfwTerminate(); glfwTerminate();
if (!Global.exec_on_exit.empty()) if (!Global.exec_on_exit.empty())