aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpaneldisplay.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/linden/indra/newview/llpaneldisplay.cpp b/linden/indra/newview/llpaneldisplay.cpp
index b2313f6..e17ba2b 100644
--- a/linden/indra/newview/llpaneldisplay.cpp
+++ b/linden/indra/newview/llpaneldisplay.cpp
@@ -325,8 +325,9 @@ BOOL LLPanelDisplay::postBuild()
325 mLightingText = getChild<LLTextBox>("LightingDetailText"); 325 mLightingText = getChild<LLTextBox>("LightingDetailText");
326 mMeshDetailText = getChild<LLTextBox>("MeshDetailText"); 326 mMeshDetailText = getChild<LLTextBox>("MeshDetailText");
327 327
328 childSetValue("toggle_windlight_control", gSavedSettings.getBOOL("EnableWindlightRemote")); 328 static BOOL* sEnableWindlightRemote = rebind_llcontrol<BOOL>("EnableWindlightRemote", &gSavedSettings, true);
329 mWLControl = gSavedSettings.getBOOL("EnableWindlightRemote"); 329 childSetValue("toggle_windlight_control", (*sEnableWindlightRemote));
330 mWLControl = (*sEnableWindlightRemote);
330 331
331 refresh(); 332 refresh();
332 333
@@ -387,7 +388,8 @@ void LLPanelDisplay::refresh()
387 mCustomSettings = gSavedSettings.getBOOL("RenderCustomSettings"); 388 mCustomSettings = gSavedSettings.getBOOL("RenderCustomSettings");
388 389
389 // shader settings 390 // shader settings
390 mBumpShiny = gSavedSettings.getBOOL("RenderObjectBump"); 391 static BOOL* sRenderObjectBump = rebind_llcontrol<BOOL>("RenderObjectBump", &gSavedSettings, true);
392 mBumpShiny = *sRenderObjectBump;
391 mShaderEnable = gSavedSettings.getBOOL("VertexShaderEnable"); 393 mShaderEnable = gSavedSettings.getBOOL("VertexShaderEnable");
392 mWindLight = gSavedSettings.getBOOL("WindLightUseAtmosShaders"); 394 mWindLight = gSavedSettings.getBOOL("WindLightUseAtmosShaders");
393 mReflections = gSavedSettings.getBOOL("RenderWaterReflections"); 395 mReflections = gSavedSettings.getBOOL("RenderWaterReflections");
@@ -418,7 +420,8 @@ void LLPanelDisplay::refresh()
418 mTerrainDetail = gSavedSettings.getS32("RenderTerrainDetail"); 420 mTerrainDetail = gSavedSettings.getS32("RenderTerrainDetail");
419 421
420 // windlight remote 422 // windlight remote
421 mWLControl = gSavedSettings.getBOOL("EnableWindlightRemote"); 423 static BOOL* sEnableWindlightRemote = rebind_llcontrol<BOOL>("EnableWindlightRemote", &gSavedSettings, true);
424 mWLControl = (*sEnableWindlightRemote);
422 425
423 // max avatar count 426 // max avatar count
424 mAvatarMaxVisible = gSavedSettings.getS32("RenderAvatarMaxVisible"); 427 mAvatarMaxVisible = gSavedSettings.getS32("RenderAvatarMaxVisible");