summaryrefslogtreecommitdiff
path: root/indra/newview/llsettingsvo.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-12-04 20:36:05 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-12-05 18:59:59 +0200
commit396b97aebfb3294287a4a598f0be3900ccada69a (patch)
tree938755d2ea0cbcfc02009f2961c2f93b686ef9ed /indra/newview/llsettingsvo.cpp
parent0dccb322ef30de1a6936a2286bae696f988224ab (diff)
viewer-private#330 Fix LLCachedControl for vintage
Diffstat (limited to 'indra/newview/llsettingsvo.cpp')
-rw-r--r--indra/newview/llsettingsvo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llsettingsvo.cpp b/indra/newview/llsettingsvo.cpp
index 836b181623..25df53fe05 100644
--- a/indra/newview/llsettingsvo.cpp
+++ b/indra/newview/llsettingsvo.cpp
@@ -671,7 +671,7 @@ void LLSettingsVOSky::updateSettings()
// After some A/B comparison of relesae vs EEP, tweak to allow strength to fall below 2
// at night, for better match. (mSceneLightStrength is a divisor, so lower value means brighter
// local lights)
- LLCachedControl<F32> sdr(gSavedSettings, "RenderSunDynamicRange", 1.f);
+ static LLCachedControl<F32> sdr(gSavedSettings, "RenderSunDynamicRange", 1.f);
F32 sun_dynamic_range = llmax(sdr(), 0.0001f);
mSceneLightStrength = 2.0f * (0.75f + sun_dynamic_range * dp);