mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-20 10:18:14 +00:00
Reset close status for next frame #1339
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user