diff options
author | McCabe Maxsted | 2009-09-14 17:52:41 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-14 17:52:41 -0700 |
commit | 7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd (patch) | |
tree | 0243666021de3ae6ac61a6c6f4e57d42771fe964 /linden/indra/newview/llpaneldisplay.cpp | |
parent | Applied BlockClickSit debug setting from Emerald to block sit click action (diff) | |
download | meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.zip meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.gz meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.bz2 meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.xz |
Merged in jacek/next
Diffstat (limited to 'linden/indra/newview/llpaneldisplay.cpp')
-rw-r--r-- | linden/indra/newview/llpaneldisplay.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/linden/indra/newview/llpaneldisplay.cpp b/linden/indra/newview/llpaneldisplay.cpp index 308f3df..e3da12a 100644 --- a/linden/indra/newview/llpaneldisplay.cpp +++ b/linden/indra/newview/llpaneldisplay.cpp | |||
@@ -478,7 +478,12 @@ void LLPanelDisplay::refreshEnabledState() | |||
478 | } | 478 | } |
479 | 479 | ||
480 | // Vertex Shaders | 480 | // Vertex Shaders |
481 | mCtrlShaderEnable->setEnabled(LLFeatureManager::getInstance()->isFeatureAvailable("VertexShaderEnable")); | 481 | // mCtrlShaderEnable->setEnabled(LLFeatureManager::getInstance()->isFeatureAvailable("VertexShaderEnable")); |
482 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0a | ||
483 | // "Basic Shaders" can't be disabled - but can be enabled - under @setenv=n | ||
484 | bool fCtrlShaderEnable = LLFeatureManager::getInstance()->isFeatureAvailable("VertexShaderEnable"); | ||
485 | mCtrlShaderEnable->setEnabled(fCtrlShaderEnable && (!gRlvHandler.hasBehaviour(RLV_BHVR_SETENV) || !mShaderEnable)); | ||
486 | // [/RLVa:KB] | ||
482 | 487 | ||
483 | BOOL shaders = mCtrlShaderEnable->get(); | 488 | BOOL shaders = mCtrlShaderEnable->get(); |
484 | if (shaders) | 489 | if (shaders) |
@@ -493,7 +498,12 @@ void LLPanelDisplay::refreshEnabledState() | |||
493 | 498 | ||
494 | // *HACK just checks to see if we can use shaders... | 499 | // *HACK just checks to see if we can use shaders... |
495 | // maybe some cards that use shaders, but don't support windlight | 500 | // maybe some cards that use shaders, but don't support windlight |
496 | mCtrlWindLight->setEnabled(mCtrlShaderEnable->getEnabled() && shaders); | 501 | // mCtrlWindLight->setEnabled(mCtrlShaderEnable->getEnabled() && shaders); |
502 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0a | ||
503 | // "Atmospheric Shaders" can't be disabled - but can be enabled - under @setenv=n | ||
504 | bool fCtrlWindLightEnable = fCtrlShaderEnable && shaders; | ||
505 | mCtrlWindLight->setEnabled(fCtrlWindLightEnable && (!gRlvHandler.hasBehaviour(RLV_BHVR_SETENV) || !mWindLight)); | ||
506 | // [/RLVa:KB] | ||
497 | 507 | ||
498 | // turn off sky detail if atmostpherics isn't on | 508 | // turn off sky detail if atmostpherics isn't on |
499 | mCtrlSkyFactor->setEnabled(gSavedSettings.getBOOL("WindLightUseAtmosShaders")); | 509 | mCtrlSkyFactor->setEnabled(gSavedSettings.getBOOL("WindLightUseAtmosShaders")); |