Ver código fonte

Reset close status for next frame #1339

pull/1341/head
raysan5 4 anos atrás
pai
commit
2c7dc70878
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      src/core.c

+ 3
- 0
src/core.c Ver arquivo

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

Carregando…
Cancelar
Salvar