Browse Source

Wait for events when window is minimized...

...instead of keep polling
pull/218/head
Ray 8 years ago
parent
commit
d8edcafe5a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c View File

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

Loading…
Cancel
Save