Reset close status for next frame #1339
This commit is contained in:
parent
2d866d5118
commit
2c7dc70878
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue