diff options
| author | raysan5 <[email protected]> | 2020-08-06 11:47:46 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-08-06 11:47:46 +0200 |
| commit | 2c7dc708785da2afc3270d985f5eb2b369977d69 (patch) | |
| tree | 306bf3f29f3ad04d3c0f4ee775ec70eb2e693a0a /src | |
| parent | 2d866d51185fff595df7c7d1c1384b6f33322725 (diff) | |
| download | raylib-2c7dc708785da2afc3270d985f5eb2b369977d69.tar.gz raylib-2c7dc708785da2afc3270d985f5eb2b369977d69.zip | |
Reset close status for next frame #1339
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |
