mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-04 00:42:05 +01:00
Merge pull request #220 from MaSzyna-EU07/fix/python-worker-shutdown-crash
fix(python): stop python workers before destroying windows on exit
This commit is contained in:
@@ -701,11 +701,12 @@ void eu07_application::exit()
|
|||||||
|
|
||||||
ui_layer::shutdown();
|
ui_layer::shutdown();
|
||||||
|
|
||||||
|
// the python workers detach their GL context on the way out, so they have to be done before the windows they use are destroyed
|
||||||
|
m_taskqueue.exit();
|
||||||
for (auto *window : m_windows)
|
for (auto *window : m_windows)
|
||||||
{
|
{
|
||||||
glfwDestroyWindow(window);
|
glfwDestroyWindow(window);
|
||||||
}
|
}
|
||||||
m_taskqueue.exit();
|
|
||||||
glfwPollEvents(); // TODO: This fixes a segfault on Wayland when closing. Remove after updating glfw to 3.5.
|
glfwPollEvents(); // TODO: This fixes a segfault on Wayland when closing. Remove after updating glfw to 3.5.
|
||||||
glfwTerminate();
|
glfwTerminate();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user