From 9676ea59787215b01498dfa82f88d426363b3cfd Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 7 May 2025 00:06:21 -0500 Subject: [PATCH] [turbine/glfw] Fix programmatic shutdown to invoke shutdownHandler --- src/olympic/turbine/src/glfw/turbine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/olympic/turbine/src/glfw/turbine.cpp b/src/olympic/turbine/src/glfw/turbine.cpp index 24ca1644..b7b0efe9 100644 --- a/src/olympic/turbine/src/glfw/turbine.cpp +++ b/src/olympic/turbine/src/glfw/turbine.cpp @@ -123,6 +123,8 @@ void requestShutdown(Context &ctx, bool const force) noexcept { glfwSetWindowShouldClose(ctx.window, true); if (force) { ctx.running = false; + } else { + ctx.running = ctx.shutdownHandler ? !ctx.shutdownHandler(ctx) : false; } }