diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2014-02-06 10:15:00 -0700 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2014-02-06 10:15:00 -0700 |
commit | b5389618f3744464760bbe1a54b49750d211a1ac (patch) | |
tree | c80c64442176611b8ba10534421e248803459e85 /indra/newview/llvocache.cpp | |
parent | a847caade4e112906f86cfbd8511d3414d9546db (diff) |
more fix for a memory crash caused by accessing deleted pointers.
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rwxr-xr-x | indra/newview/llvocache.cpp | 12 |
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 |