summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerregion.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-10-31 15:10:10 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-10-31 15:10:10 -0600
commitccb921b287b14129918c07072f57078c69ca7e65 (patch)
tree9f9e439d11b8de3c9e62d2793975a7f41359fa38 /indra/newview/llviewerregion.cpp
parent960765e8c7d49a48e66f2e55e980c60645d9ca37 (diff)
more fix for performance regression.
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rwxr-xr-xindra/newview/llviewerregion.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp
index a4b7efc56a..b3837a41fe 100755
--- a/indra/newview/llviewerregion.cpp
+++ b/indra/newview/llviewerregion.cpp
@@ -1299,6 +1299,9 @@ BOOL LLViewerRegion::idleUpdate(F32 max_update_time)
mPaused = FALSE; //unpause.
}
+ LLViewerCamera::eCameraID old_camera_id = LLViewerCamera::sCurCameraID;
+ LLViewerCamera::sCurCameraID = LLViewerCamera::CAMERA_WORLD;
+
//reset all occluders
mImpl->mVOCachePartition->resetOccluders();
@@ -1313,6 +1316,7 @@ BOOL LLViewerRegion::idleUpdate(F32 max_update_time)
mImpl->mWaitingList.clear();
mImpl->mVisibleGroups.clear();
+ LLViewerCamera::sCurCameraID = old_camera_id;
return did_update;
}