diff options
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
| -rw-r--r-- | indra/newview/llviewertexture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index 739ca25707..ac8bb1d0c5 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -713,7 +713,7 @@ void LLViewerTexture::updateClass() else { // Slowly ramp up factor to free memory (increasing factor decreases draw range) - constexpr F32 MAX_INCREMENT = 0.05; + constexpr F32 MAX_INCREMENT = 0.05f; F32 increment = MAX_INCREMENT * llmax(-(F32)sys_budget_debt / (F32)budget_target, 0.f); sSysMemoryFactor += increment * gFrameIntervalSeconds; } @@ -730,7 +730,7 @@ void LLViewerTexture::updateClass() if (free_sys_mem > MEM_THRESHOLD && sSysMemoryFactor > 1.f) { // Ramp down factor over time. - constexpr F32 DECREMENT = 0.02; + constexpr F32 DECREMENT = 0.02f; sSysMemoryFactor -= DECREMENT * gFrameIntervalSeconds; sSysMemoryFactor = llclamp(sSysMemoryFactor, 1.f, 2.f); } |
