[nostalgia/core] Add missing change for constant refresh option
This commit is contained in:
@@ -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>());
|
||||
|
||||
Reference in New Issue
Block a user