Hide UI related to advanced atmospherics and make it off by default again.

meow-7.2.2
Graham Linden 2018-09-11 17:49:26 +01:00
parent 24e0e64f2f
commit cd2dc42a28
3 changed files with 7 additions and 1 deletions

View File

@ -10165,7 +10165,7 @@
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>1</integer>
<integer>0</integer>
</map>
<key>RenderUseTriStrips</key>
<map>

View File

@ -1362,10 +1362,12 @@ void LLFloaterPreferenceGraphicsAdvanced::refreshEnabledState()
ctrl_ssao->setEnabled(enabled);
ctrl_dof->setEnabled(enabled);
#if USE_ADVANCED_ATMOSPHERICS
LLCheckBoxCtrl* ctrl_advanced_atmo = getChild<LLCheckBoxCtrl>("UseAdvancedAtmo");
bool advanced_atmo_enabled = enabled && LLFeatureManager::getInstance()->isFeatureAvailable("RenderUseAdvancedAtmospherics");
ctrl_advanced_atmo->setEnabled(advanced_atmo_enabled);
#endif
enabled = enabled && LLFeatureManager::getInstance()->isFeatureAvailable("RenderShadowDetail");
@ -2731,7 +2733,9 @@ LLFloaterPreferenceGraphicsAdvanced::LLFloaterPreferenceGraphicsAdvanced(const L
: LLFloater(key)
{
mCommitCallbackRegistrar.add("Pref.VertexShaderEnable", boost::bind(&LLFloaterPreferenceGraphicsAdvanced::onVertexShaderEnable, this));
#if USE_ADVANCED_ATMOSPHERICS
mCommitCallbackRegistrar.add("Pref.AdvancedAtmosphericsEnable", boost::bind(&LLFloaterPreferenceGraphicsAdvanced::onAdvancedAtmosphericsEnable, this));
#endif
mCommitCallbackRegistrar.add("Pref.UpdateIndirectMaxNonImpostors", boost::bind(&LLFloaterPreferenceGraphicsAdvanced::updateMaxNonImpostors,this));
mCommitCallbackRegistrar.add("Pref.UpdateIndirectMaxComplexity", boost::bind(&LLFloaterPreferenceGraphicsAdvanced::updateMaxComplexity,this));
}

View File

@ -819,6 +819,7 @@
function="Pref.VertexShaderEnable" />
</check_box>
<!--
<check_box
control_name="RenderUseAdvancedAtmospherics"
height="16"
@ -832,6 +833,7 @@
<check_box.commit_callback
function="Pref.AdvancedAtmosphericsEnable" />
</check_box>
-->
<text
type="string"