summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-08-08 16:45:55 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-08-08 16:45:55 -0600
commita6711a894c3c32ad24b47e36b2a52225713fd3ed (patch)
tree73c6a36e202e88576ee74b4caa5a98c58cae3c80 /indra/newview/pipeline.cpp
parenta2c7b0485576c6bb92f6d0eddc762f5e37d5caac (diff)
fix for SH-4402: interesting: lower FPS with lots of objects in view
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rwxr-xr-xindra/newview/pipeline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 1abaaa49ac..87c3bf7bdf 100755
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -2724,7 +2724,7 @@ void LLPipeline::doOcclusion(LLCamera& camera, LLRenderTarget& source, LLRenderT
void LLPipeline::doOcclusion(LLCamera& camera)
{
- if (LLPipeline::sUseOcclusion > 1)
+ if (LLPipeline::sUseOcclusion > 1 && (sCull->hasOcclusionGroups() || LLVOCachePartition::sNeedsOcclusionCheck))
{
LLVertexBuffer::unbind();