diff --git a/indra/newview/quickprefs.cpp b/indra/newview/quickprefs.cpp index 1446f72172..7d49a08fdf 100644 --- a/indra/newview/quickprefs.cpp +++ b/indra/newview/quickprefs.cpp @@ -38,10 +38,25 @@ #include "lltimectrl.h" #include "llenvmanager.h" #include "llviewercontrol.h" +#include "lldrawpoolbump.h" +#include "llviewertexturelist.h" + +// Ansariel: Copied from llviewercontrol.cpp, handleSetShaderChanged() +static void handleShaderChanged() +{ + // changing shader level may invalidate existing cached bump maps, as the shader type determines the format of the bump map it expects - clear and repopulate the bump cache + gBumpImageList.destroyGL(); + gBumpImageList.restoreGL(); + + // else, leave terrain detail as is + LLViewerShaderMgr::instance()->setShaders(); +} FloaterQuickPrefs::FloaterQuickPrefs(const LLSD& key) -: LLTransientDockableFloater(NULL,true,key) +: LLTransientDockableFloater(NULL, true, key) { + // For Phototools + mCommitCallbackRegistrar.add("Quickprefs.ShaderChanged", boost::bind(&handleShaderChanged)); } FloaterQuickPrefs::~FloaterQuickPrefs() @@ -53,7 +68,8 @@ void FloaterQuickPrefs::onOpen(const LLSD& key) } -void FloaterQuickPrefs::initCallbacks(void) { +void FloaterQuickPrefs::initCallbacks(void) +{ LLWLParamManager& param_mgr = LLWLParamManager::instance(); getChild("WaterPresetsCombo")->setCommitCallback(boost::bind(&FloaterQuickPrefs::onChangeWaterPreset, this, _1)); getChild("WLPresetsCombo")->setCommitCallback(boost::bind(&FloaterQuickPrefs::onChangeSkyPreset, this, _1)); diff --git a/indra/newview/skins/default/xui/de/floater_phototools.xml b/indra/newview/skins/default/xui/de/floater_phototools.xml index 9d22ce23bc..de1b6fcb9f 100644 --- a/indra/newview/skins/default/xui/de/floater_phototools.xml +++ b/indra/newview/skins/default/xui/de/floater_phototools.xml @@ -10,6 +10,7 @@ + @@ -70,7 +71,7 @@ - + Qualität @@ -81,7 +82,6 @@ - @@ -374,7 +374,7 @@ - + Textur-Holprigkeit @@ -385,7 +385,6 @@ - diff --git a/indra/newview/skins/default/xui/en/floater_phototools.xml b/indra/newview/skins/default/xui/en/floater_phototools.xml index 43569c9d53..3d1d5f0fe9 100644 --- a/indra/newview/skins/default/xui/en/floater_phototools.xml +++ b/indra/newview/skins/default/xui/en/floater_phototools.xml @@ -68,9 +68,21 @@ top_pad="5" left="4" width="275" - height="30" + height="55" border_visible="true" background_visible="true"> + + - @@ -538,7 +548,7 @@ top_pad="5" left="4" width="275" - height="83" + height="58" border_visible="true" background_visible="true"> + tool_tip="Determines the resolution/quality of water reflections. Whenever resolution settings are set to 'Very Good' or above, you must also enable 'Lighting and Shadows' in tab 'Light'."> Resolution + - - - -