aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 4d662a41..2917d839 100644
--- a/src/core.c
+++ b/src/core.c
@@ -494,7 +494,7 @@ bool WindowShouldClose(void)
{
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
// While window minimized, stop loop execution
- while (windowMinimized) glfwPollEvents();
+ while (windowMinimized) glfwWaitEvents();
return (glfwWindowShouldClose(window));
#endif