summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@lindenlab.com>2024-05-29 19:31:58 -0700
committerGitHub <noreply@github.com>2024-05-29 19:31:58 -0700
commit01c82642ac01342114f41f2428890042c3040c9b (patch)
treef8162163362a26e50a6f3d3bb1a5d41de8fa4eef
parent12cd8589b4de85bc7f69c2cddc0d367cadb3b3f3 (diff)
#1581 Only render mirrors when reflection probes are enabled. (#1592)
-rw-r--r--indra/newview/llheroprobemanager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llheroprobemanager.cpp b/indra/newview/llheroprobemanager.cpp
index 1c08424868..ff47ca87ec 100644
--- a/indra/newview/llheroprobemanager.cpp
+++ b/indra/newview/llheroprobemanager.cpp
@@ -75,7 +75,7 @@ LLHeroProbeManager::~LLHeroProbeManager()
// helper class to seed octree with probes
void LLHeroProbeManager::update()
{
- if (!LLPipeline::RenderMirrors || gTeleportDisplay || LLStartUp::getStartupState() < STATE_PRECACHE)
+ if (!LLPipeline::RenderMirrors || !LLPipeline::sReflectionProbesEnabled || gTeleportDisplay || LLStartUp::getStartupState() < STATE_PRECACHE)
{
return;
}
@@ -212,6 +212,12 @@ void LLHeroProbeManager::update()
void LLHeroProbeManager::renderProbes()
{
+ if (!LLPipeline::RenderMirrors || !LLPipeline::sReflectionProbesEnabled || gTeleportDisplay ||
+ LLStartUp::getStartupState() < STATE_PRECACHE)
+ {
+ return;
+ }
+
static LLCachedControl<S32> sDetail(gSavedSettings, "RenderHeroReflectionProbeDetail", -1);
static LLCachedControl<S32> sLevel(gSavedSettings, "RenderHeroReflectionProbeLevel", 3);