mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-13 04:48:01 +00:00
Reset close status for next frame #1339
This commit is contained in:
parent
2d866d5118
commit
2c7dc70878
@ -849,6 +849,9 @@ bool WindowShouldClose(void)
|
||||
while (!CORE.Window.alwaysRun && CORE.Window.minimized) glfwWaitEvents();
|
||||
|
||||
CORE.Window.shouldClose = glfwWindowShouldClose(CORE.Window.handle);
|
||||
|
||||
// Reset close status for next frame
|
||||
glfwSetWindowShouldClose(CORE.Window.handle, GLFW_FALSE);
|
||||
|
||||
return CORE.Window.shouldClose;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user