mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-20 18:28:15 +00:00
Reset close status for next frame #1339
This commit is contained in:
@@ -850,6 +850,9 @@ bool WindowShouldClose(void)
|
|||||||
|
|
||||||
CORE.Window.shouldClose = glfwWindowShouldClose(CORE.Window.handle);
|
CORE.Window.shouldClose = glfwWindowShouldClose(CORE.Window.handle);
|
||||||
|
|
||||||
|
// Reset close status for next frame
|
||||||
|
glfwSetWindowShouldClose(CORE.Window.handle, GLFW_FALSE);
|
||||||
|
|
||||||
return CORE.Window.shouldClose;
|
return CORE.Window.shouldClose;
|
||||||
}
|
}
|
||||||
else return true;
|
else return true;
|
||||||
|
Reference in New Issue
Block a user