[turbine/glfw] Fix programmatic shutdown to invoke shutdownHandler
All checks were successful
Build / build (push) Successful in 1m50s

This commit is contained in:
Gary Talent 2025-05-07 00:06:21 -05:00
parent de8ac10653
commit 9676ea5978

View File

@ -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;
}
}