[nostalgia/core] Add missing change for constant refresh option

This commit is contained in:
2022-02-12 14:47:54 -06:00
parent 34221f086c
commit 142c78db0e
2 changed files with 21 additions and 9 deletions
+3 -1
View File
@@ -48,7 +48,9 @@ ox::Error run(Context *ctx) noexcept {
}
draw(ctx);
glfwSwapBuffers(id->window);
glfwWaitEventsTimeout(sleepTime);
if (!ctx->constantRefresh) {
glfwWaitEventsTimeout(sleepTime);
}
}
// destroy GLFW window
renderer::shutdown(ctx, ctx->rendererData<void>());