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

This commit is contained in:
Gary Talent 2025-05-07 00:06:21 -05:00
parent 2623e62aa4
commit 0dc72d1826

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