summaryrefslogtreecommitdiff
path: root/indra/newview/llheroprobemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llheroprobemanager.cpp')
-rw-r--r--indra/newview/llheroprobemanager.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llheroprobemanager.cpp b/indra/newview/llheroprobemanager.cpp
index c9728b8d93..a105fd2fa8 100644
--- a/indra/newview/llheroprobemanager.cpp
+++ b/indra/newview/llheroprobemanager.cpp
@@ -72,6 +72,18 @@ void LLHeroProbeManager::update()
return;
}
+ // This should be moved elsewhere.
+ LLSD features;
+ gAgent.getRegion()->getSimulatorFeatures(features);
+ if (mHasMirrors != features.has("MirrorsEnabled"))
+ {
+ mHasMirrors = features.has("MirrorsEnabled");
+ LLViewerShaderMgr::instance()->setShaders();
+ }
+
+ if (!mHasMirrors)
+ return;
+
LL_PROFILE_ZONE_SCOPED_CATEGORY_DISPLAY;
llassert(!gCubeSnapshot); // assert a snapshot is not in progress
if (LLAppViewer::instance()->logoutRequestSent())