diff options
-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. { |