[turbine/glfw] Ensure window opens with a standard mandatory refresh period
This commit is contained in:
parent
df190c05a0
commit
40938958de
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user