From 92b09e3a164e59f5a0c4e436d044590513ddc6bd Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Wed, 3 Aug 2022 10:41:08 -0500 Subject: SL-17706 Deprecate RenderGamma and RenderFogRatio and remove dead UI from graphics preferences. --- indra/newview/app_settings/settings.xml | 4 +- indra/newview/llfloaterpreference.cpp | 5 --- .../en/floater_preferences_graphics_advanced.xml | 46 ---------------------- 3 files changed, 2 insertions(+), 53 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 3bbfed4d29..8a86faa18d 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -9857,7 +9857,7 @@ RenderFogRatio Comment - Distance from camera where fog reaches maximum density (fraction or multiple of far clip distance) + DEPRECATED - Distance from camera where fog reaches maximum density (fraction or multiple of far clip distance) Persist 1 Type @@ -9868,7 +9868,7 @@ RenderGamma Comment - Sets gamma exponent for renderer + DEPRECATED - Sets gamma exponent for renderer Persist 1 Type diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 7a5999147c..20749b67b2 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -1269,11 +1269,6 @@ void LLFloaterPreferenceGraphicsAdvanced::refreshEnabledState() getChildView("texture compression")->setEnabled(FALSE); } - // if no windlight shaders, turn off nighttime brightness, gamma, and fog distance - LLUICtrl* gamma_ctrl = getChild("gamma"); - gamma_ctrl->setEnabled(!gPipeline.canUseWindLightShaders()); - getChildView("(brightness, lower is brighter)")->setEnabled(!gPipeline.canUseWindLightShaders()); - getChildView("fog")->setEnabled(!gPipeline.canUseWindLightShaders()); getChildView("antialiasing restart")->setVisible(!LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferred")); // now turn off any features that are unavailable diff --git a/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml b/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml index b102007806..b7708b057d 100644 --- a/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml +++ b/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml @@ -289,52 +289,6 @@ top_delta="16" width="335" /> - - - - - (0 = default brightness, lower = brighter) - -