summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindra/newview/llvocache.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index 26f6987916..2176ec9c9c 100755
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -589,14 +589,10 @@ void LLVOCacheEntry::updateParentBoundingInfo(const LLVOCacheEntry* child)
//-------------------------------------------------------------------
LLVOCacheGroup::~LLVOCacheGroup()
{
- //for(S32 i = 0; i < LLViewerCamera::NUM_CAMERAS; i++)
- //{
- // if(mOcclusionState[i] & ACTIVE_OCCLUSION)
- // {
- // ((LLVOCachePartition*)mSpatialPartition)->removeOccluder(this);
- // break;
- // }
- //}
+ if(mOcclusionState[LLViewerCamera::CAMERA_WORLD] & ACTIVE_OCCLUSION)
+ {
+ ((LLVOCachePartition*)mSpatialPartition)->removeOccluder(this);
+ }
}
//virtual