summaryrefslogtreecommitdiff
path: root/indra/newview/llvocache.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-08-07 11:29:31 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-08-07 11:29:31 -0600
commitf6a342438c59548276f0ee9f3033b47229d5d6d3 (patch)
tree93c395c16cae48169c825285fffde99b2f6a773b /indra/newview/llvocache.cpp
parentbe8d04c358086d6650fe7a8195949ba6c11096ae (diff)
more fix for SH-4397: Object cache occlusion culling results are not always correct
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rwxr-xr-xindra/newview/llvocache.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index 1b68fee4c1..11f31fcb9a 100755
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -551,6 +551,14 @@ public:
virtual void processGroup(LLviewerOctreeGroup* base_group)
{
+ if( !mUseObjectCacheOcclusion ||
+ !base_group->getOctreeNode()->getParent())
+ {
+ //no occlusion check
+ mRegionp->addVisibleGroup(base_group);
+ return;
+ }
+
LLOcclusionCullingGroup* group = (LLOcclusionCullingGroup*)base_group;
if(!group->isRecentlyVisible())//needs to issue new occlusion culling check.
{