diff options
author | Jonathan "Geenz" Goodman <geenz@lindenlab.com> | 2024-02-27 11:09:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 11:09:38 -0800 |
commit | 7d1e3e08fcfbb3801edde3b6d248080055cd0a75 (patch) | |
tree | 6f7bdf27cf2a42b424ad7e821ae963432a4a4f89 /indra/newview/llvovolume.cpp | |
parent | 95e1badaa4566bea41479623bf5b5112f7184cd5 (diff) | |
parent | ae9d3e719a0cdb7af5dc470369df6fadd3e04b49 (diff) |
Merge pull request #891 from secondlife/geenz/mirrors-optimization-pass-1
#682 First mirrors optimization pass
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 27d2e6af71..d7af7a42d1 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -296,6 +296,11 @@ void LLVOVolume::markDead() { mLightTexture->removeVolume(LLRender::LIGHT_TEX, this); } + + if (mIsHeroProbe) + { + gPipeline.mHeroProbeManager.unregisterViewerObject(this); + } } LLViewerObject::markDead(); @@ -4411,7 +4416,9 @@ void LLVOVolume::updateReflectionProbePtr() { // Geenz: This is a special case - what we want here is a hero probe. // What we want to do here is instantiate a hero probe from the hero probe manager. - gPipeline.mHeroProbeManager.registerViewerObject(this); + + if (!mIsHeroProbe) + mIsHeroProbe = gPipeline.mHeroProbeManager.registerViewerObject(this); } } else if (mReflectionProbe.notNull() || getReflectionProbeIsMirror()) |