From 396b97aebfb3294287a4a598f0be3900ccada69a Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Wed, 4 Dec 2024 20:36:05 +0200 Subject: viewer-private#330 Fix LLCachedControl for vintage --- indra/newview/llsettingsvo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/llsettingsvo.cpp') 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 sdr(gSavedSettings, "RenderSunDynamicRange", 1.f); + static LLCachedControl sdr(gSavedSettings, "RenderSunDynamicRange", 1.f); F32 sun_dynamic_range = llmax(sdr(), 0.0001f); mSceneLightStrength = 2.0f * (0.75f + sun_dynamic_range * dp); -- cgit v1.3