[turbine/glfw] Ensure window opens with a standard mandatory refresh period
All checks were successful
Build / build (push) Successful in 3m19s

This commit is contained in:
Gary Talent 2025-01-04 23:49:04 -06:00
parent 1048e522fd
commit 8d1701b0bb

View File

@ -50,6 +50,7 @@ ox::Result<ContextUPtr> init(
glfwInit();
OX_RETURN_ERROR(initGfx(*ctx));
glfwSetWindowSizeCallback(ctx->window, draw);
ctx->mandatoryRefreshPeriodEnd = ticksMs(*ctx) + config::MandatoryRefreshPeriod;
return ox::UPtr<Context, ContextDeleter>(ctx.release());
}