diff options
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 d510775..14e295c 100644 --- a/linden/indra/newview/llpaneldisplay.cpp +++ b/linden/indra/newview/llpaneldisplay.cpp | |||
@@ -475,7 +475,12 @@ void LLPanelDisplay::refreshEnabledState() | |||
475 | } | 475 | } |
476 | 476 | ||
477 | // Vertex Shaders | 477 | // Vertex Shaders |
478 | mCtrlShaderEnable->setEnabled(LLFeatureManager::getInstance()->isFeatureAvailable("VertexShaderEnable")); | 478 | // mCtrlShaderEnable->setEnabled(LLFeatureManager::getInstance()->isFeatureAvailable("VertexShaderEnable")); |
479 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0a | ||
480 | // "Basic Shaders" can't be disabled - but can be enabled - under @setenv=n | ||
481 | bool fCtrlShaderEnable = LLFeatureManager::getInstance()->isFeatureAvailable("VertexShaderEnable"); | ||
482 | mCtrlShaderEnable->setEnabled(fCtrlShaderEnable && (!gRlvHandler.hasBehaviour(RLV_BHVR_SETENV) || !mShaderEnable)); | ||
483 | // [/RLVa:KB] | ||
479 | 484 | ||
480 | BOOL shaders = mCtrlShaderEnable->get(); | 485 | BOOL shaders = mCtrlShaderEnable->get(); |
481 | if (shaders) | 486 | if (shaders) |
@@ -490,7 +495,12 @@ void LLPanelDisplay::refreshEnabledState() | |||
490 | 495 | ||
491 | // *HACK just checks to see if we can use shaders... | 496 | // *HACK just checks to see if we can use shaders... |
492 | // maybe some cards that use shaders, but don't support windlight | 497 | // maybe some cards that use shaders, but don't support windlight |
493 | mCtrlWindLight->setEnabled(mCtrlShaderEnable->getEnabled() && shaders); | 498 | // mCtrlWindLight->setEnabled(mCtrlShaderEnable->getEnabled() && shaders); |
499 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0a | ||
500 | // "Atmospheric Shaders" can't be disabled - but can be enabled - under @setenv=n | ||
501 | bool fCtrlWindLightEnable = fCtrlShaderEnable && shaders; | ||
502 | mCtrlWindLight->setEnabled(fCtrlWindLightEnable && (!gRlvHandler.hasBehaviour(RLV_BHVR_SETENV) || !mWindLight)); | ||
503 | // [/RLVa:KB] | ||
494 | 504 | ||
495 | // turn off sky detail if atmostpherics isn't on | 505 | // turn off sky detail if atmostpherics isn't on |
496 | mCtrlSkyFactor->setEnabled(gSavedSettings.getBOOL("WindLightUseAtmosShaders")); | 506 | mCtrlSkyFactor->setEnabled(gSavedSettings.getBOOL("WindLightUseAtmosShaders")); |