Skip to content
Snippets Groups Projects
Commit d6f15179 authored by Jonathan "Geenz" Goodman's avatar Jonathan "Geenz" Goodman
Browse files

Remove the rebuild on the drawable. Wasn't working as expected anyways.

DRTVWR-583
parent 1433434b
No related branches found
No related tags found
No related merge requests found
...@@ -206,14 +206,6 @@ void LLHeroProbeManager::update() ...@@ -206,14 +206,6 @@ void LLHeroProbeManager::update()
// In effect this simulates single-bounce lighting. // In effect this simulates single-bounce lighting.
void LLHeroProbeManager::updateProbeFace(LLReflectionMap* probe, U32 face) void LLHeroProbeManager::updateProbeFace(LLReflectionMap* probe, U32 face)
{ {
// Make our object invisible.
if (mNearestHero)
{
mNearestHero->setDrawableState(LLDrawable::FORCE_INVISIBLE, true);
gPipeline.markRebuild( mNearestHero->mDrawable, LLDrawable::REBUILD_ALL);
}
// hacky hot-swap of camera specific render targets // hacky hot-swap of camera specific render targets
gPipeline.mRT = &gPipeline.mAuxillaryRT; gPipeline.mRT = &gPipeline.mAuxillaryRT;
...@@ -382,12 +374,6 @@ void LLHeroProbeManager::updateProbeFace(LLReflectionMap* probe, U32 face) ...@@ -382,12 +374,6 @@ void LLHeroProbeManager::updateProbeFace(LLReflectionMap* probe, U32 face)
mMipChain[0].flush(); mMipChain[0].flush();
} }
if (mNearestHero)
{
mNearestHero->clearDrawableState(LLDrawable::FORCE_INVISIBLE, true);
gPipeline.markRebuild( mNearestHero->mDrawable, LLDrawable::REBUILD_ALL);
}
} }
void LLHeroProbeManager::updateUniforms() void LLHeroProbeManager::updateUniforms()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment