mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-13 01:55:46 +02:00
compile fix
This commit is contained in:
parent
fe57a20979
commit
cb01c5cada
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ void LODManager::autoAdjustLOD(float batchTime, float engineRunTime, float delta
|
|||
float renderTime = batchTime + OVERLAY_AND_SWAP_TIME_BUDGET;
|
||||
float maxTime = glm::max(renderTime, engineRunTime);
|
||||
const float BLEND_TIMESCALE = 0.3f; // sec
|
||||
const float safeDeltaTime = (deltaTime == 0.0f) ? 0.001f : deltaTime;
|
||||
const float safeDeltaTime = (deltaTimeSec == 0.0f) ? 0.001f : deltaTimeSec;
|
||||
float blend = BLEND_TIMESCALE / safeDeltaTime;
|
||||
if (blend > 1.0f) {
|
||||
blend = 1.0f;
|
||||
|
|
Loading…
Reference in a new issue