diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-08-07 11:29:31 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-08-07 11:29:31 -0600 |
commit | f6a342438c59548276f0ee9f3033b47229d5d6d3 (patch) | |
tree | 93c395c16cae48169c825285fffde99b2f6a773b /indra/newview/llvocache.cpp | |
parent | be8d04c358086d6650fe7a8195949ba6c11096ae (diff) |
more fix for SH-4397: Object cache occlusion culling results are not always correct
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rwxr-xr-x | indra/newview/llvocache.cpp | 8 |
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. { |