summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-10-29 22:46:07 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-10-29 22:46:07 -0600
commit8582cd06ba4ec417efe9dc24971fe7011309a51c (patch)
tree4759cebc724dd064706daaf84854c775b544b6de /indra/newview
parentd9d696de388ab7ce0626a18ce461ce7e84b86793 (diff)
fix to decrease number of triangles rendered per frame
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvieweroctree.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llvieweroctree.cpp b/indra/newview/llvieweroctree.cpp
index 3646133e91..1b3d7da90d 100644
--- a/indra/newview/llvieweroctree.cpp
+++ b/indra/newview/llvieweroctree.cpp
@@ -746,7 +746,11 @@ BOOL LLViewerOctreeGroup::isRecentlyVisible() const
void LLViewerOctreeGroup::setVisible()
{
mVisible[LLViewerCamera::sCurCameraID] = LLViewerOctreeEntryData::getCurrentFrame();
- mAnyVisible = LLViewerOctreeEntryData::getCurrentFrame();
+
+ if(LLViewerCamera::sCurCameraID < LLViewerCamera::CAMERA_WATER0)
+ {
+ mAnyVisible = LLViewerOctreeEntryData::getCurrentFrame();
+ }
}
void LLViewerOctreeGroup::checkStates()