Reset close status for next frame #1339

This commit is contained in:
raysan5 2020-08-06 11:47:46 +02:00
parent 2d866d5118
commit 2c7dc70878

View file

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