summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerregion.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2014-01-09 21:17:49 -0700
committerXiaohong Bao <bao@lindenlab.com>2014-01-09 21:17:49 -0700
commit87f852ee67c75ac415ce716157bdd9ba94c60441 (patch)
tree40fbf929b51d056790e52e463f8e5bdbfca53856 /indra/newview/llviewerregion.cpp
parent6a113325521fa68c634cd900de8352c35fe91268 (diff)
fix for SH-4659:crash at LLOcclusionCullingGroup::doOcclusion line 1150
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rwxr-xr-xindra/newview/llviewerregion.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp
index 002dac14a7..3d8afcceb0 100755
--- a/indra/newview/llviewerregion.cpp
+++ b/indra/newview/llviewerregion.cpp
@@ -980,13 +980,15 @@ void LLViewerRegion::addToVOCacheTree(LLVOCacheEntry* entry)
if(entry->hasState(LLVOCacheEntry::IN_VO_TREE))
{
return; //already in the tree.
- }
- entry->setState(LLVOCacheEntry::IN_VO_TREE);
+ }
llassert_always(!entry->getGroup()); //not in octree.
llassert(!entry->getEntry()->hasDrawable()); //not have drawables
- mImpl->mVOCachePartition->addEntry(entry->getEntry());
+ if(mImpl->mVOCachePartition->addEntry(entry->getEntry()))
+ {
+ entry->setState(LLVOCacheEntry::IN_VO_TREE);
+ }
}
void LLViewerRegion::removeFromVOCacheTree(LLVOCacheEntry* entry)