[turbine/glfw] Fix programmatic shutdown to invoke shutdownHandler
All checks were successful
Build / build (push) Successful in 2m11s
All checks were successful
Build / build (push) Successful in 2m11s
This commit is contained in:
parent
2623e62aa4
commit
0dc72d1826
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user