[turbine/glfw] Ensure window opens with a standard mandatory refresh period
All checks were successful
Build / build (push) Successful in 3m19s
All checks were successful
Build / build (push) Successful in 3m19s
This commit is contained in:
parent
1048e522fd
commit
8d1701b0bb
@ -50,6 +50,7 @@ ox::Result<ContextUPtr> init(
|
|||||||
glfwInit();
|
glfwInit();
|
||||||
OX_RETURN_ERROR(initGfx(*ctx));
|
OX_RETURN_ERROR(initGfx(*ctx));
|
||||||
glfwSetWindowSizeCallback(ctx->window, draw);
|
glfwSetWindowSizeCallback(ctx->window, draw);
|
||||||
|
ctx->mandatoryRefreshPeriodEnd = ticksMs(*ctx) + config::MandatoryRefreshPeriod;
|
||||||
return ox::UPtr<Context, ContextDeleter>(ctx.release());
|
return ox::UPtr<Context, ContextDeleter>(ctx.release());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user