瀏覽代碼

Reset close status for next frame #1339

pull/1341/head
raysan5 4 年之前
父節點
當前提交
2c7dc70878
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      src/core.c

+ 3
- 0
src/core.c 查看文件

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

Loading…
取消
儲存