[FIRE-35007][#3331] Mirrors not working after relog even when enabled.

This fixes the bug, but the deeper problem of NaN behaviour under fastmath needs to be examined.
master
Beq 2025-03-22 00:47:28 +00:00
parent f54d29ba69
commit 5a14d48a94
1 changed files with 9 additions and 7 deletions

View File

@ -60,7 +60,7 @@ static void touch_default_probe(LLReflectionMap* probe)
}
}
LLHeroProbeManager::LLHeroProbeManager()
LLHeroProbeManager::LLHeroProbeManager():mMirrorNormal(0,0,1) // <FS:Beq/> [FIRE-35007][#3331] mirrors not working after relog. make sure the mirror normal is not zero length
{
}
@ -84,12 +84,14 @@ void LLHeroProbeManager::update()
// For some reason clearing shaders will cause mirrors to actually work.
// There's likely some deeper state issue that needs to be resolved.
// - Geenz 2025-02-25
if (!mInitialized && LLStartUp::getStartupState() > STATE_PRECACHE)
{
LLViewerShaderMgr::instance()->clearShaderCache();
LLViewerShaderMgr::instance()->setShaders();
mInitialized = true;
}
// <FS:Beq> [FIRE-35007][#3331] mirrors not working after relog. hack no longer needed.
// if (!mInitialized && LLStartUp::getStartupState() > STATE_PRECACHE)
// {
// LLViewerShaderMgr::instance()->clearShaderCache();
// LLViewerShaderMgr::instance()->setShaders();
// mInitialized = true;
// }
// </FS:Beq>
LL_PROFILE_ZONE_SCOPED_CATEGORY_DISPLAY;
llassert(!gCubeSnapshot); // assert a snapshot is not in progress