From 023a4602d913e22e1179c3436ea97902bdb58614 Mon Sep 17 00:00:00 2001 From: Beq Date: Sat, 26 Oct 2024 13:41:32 +0100 Subject: [PATCH] Possible fix for a variety of environment crashes in STATE_PRECACHE --- indra/newview/llheroprobemanager.cpp | 4 ++-- indra/newview/llreflectionmapmanager.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/newview/llheroprobemanager.cpp b/indra/newview/llheroprobemanager.cpp index 7e1a997576..83c5ea1850 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 || !LLPipeline::sReflectionProbesEnabled || gTeleportDisplay || LLStartUp::getStartupState() < STATE_PRECACHE) + if (!LLPipeline::RenderMirrors || !LLPipeline::sReflectionProbesEnabled || gTeleportDisplay || LLStartUp::getStartupState() < STATE_STARTED) { return; } @@ -226,7 +226,7 @@ void LLHeroProbeManager::update() void LLHeroProbeManager::renderProbes() { if (!LLPipeline::RenderMirrors || !LLPipeline::sReflectionProbesEnabled || gTeleportDisplay || - LLStartUp::getStartupState() < STATE_PRECACHE) + LLStartUp::getStartupState() < STATE_STARTED) { return; } diff --git a/indra/newview/llreflectionmapmanager.cpp b/indra/newview/llreflectionmapmanager.cpp index 3526004071..f98b674e76 100644 --- a/indra/newview/llreflectionmapmanager.cpp +++ b/indra/newview/llreflectionmapmanager.cpp @@ -201,7 +201,7 @@ static bool check_priority(LLReflectionMap* a, LLReflectionMap* b) // helper class to seed octree with probes void LLReflectionMapManager::update() { - if (!LLPipeline::sReflectionProbesEnabled || gTeleportDisplay || LLStartUp::getStartupState() < STATE_PRECACHE) + if (!LLPipeline::sReflectionProbesEnabled || gTeleportDisplay || LLStartUp::getStartupState() < STATE_STARTED) { return; }