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

Fix a segfault when closing on Wayland

According to https://github.com/glfw/glfw/issues/2744, this will be fixed in GLFW 3.5.
This commit is contained in:
jakubg1
2026-04-14 15:08:11 +02:00
parent 68c02cb3b1
commit 8a94bfbfa2

View File

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