diff options
author | McCabe Maxsted | 2009-06-09 01:34:48 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-06-09 01:34:48 -0700 |
commit | b582d1a9b804f47b65bca09dc320808338d7e302 (patch) | |
tree | ff1d2997d0c0644d65cc3505dda55e50452f7723 /linden/indra/newview/pipeline.cpp | |
parent | 'IM Received' button to '__ New IMs' (diff) | |
download | meta-impy-b582d1a9b804f47b65bca09dc320808338d7e302.zip meta-impy-b582d1a9b804f47b65bca09dc320808338d7e302.tar.gz meta-impy-b582d1a9b804f47b65bca09dc320808338d7e302.tar.bz2 meta-impy-b582d1a9b804f47b65bca09dc320808338d7e302.tar.xz |
Backported LL's version of VWR-2681 from 1.23
Diffstat (limited to 'linden/indra/newview/pipeline.cpp')
-rw-r--r-- | linden/indra/newview/pipeline.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp index 0406520..87b810c 100644 --- a/linden/indra/newview/pipeline.cpp +++ b/linden/indra/newview/pipeline.cpp | |||
@@ -608,7 +608,7 @@ void LLPipeline::restoreGL() | |||
608 | LLViewerShaderMgr::instance()->setShaders(); | 608 | LLViewerShaderMgr::instance()->setShaders(); |
609 | } | 609 | } |
610 | 610 | ||
611 | for (LLWorld::region_list_t::iterator iter = LLWorld::getInstance()->getRegionList().begin(); | 611 | for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); |
612 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) | 612 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) |
613 | { | 613 | { |
614 | LLViewerRegion* region = *iter; | 614 | LLViewerRegion* region = *iter; |
@@ -758,7 +758,7 @@ void LLPipeline::dirtyPoolObjectTextures(const std::set<LLViewerImage*>& texture | |||
758 | } | 758 | } |
759 | 759 | ||
760 | LLOctreeDirtyTexture dirty(textures); | 760 | LLOctreeDirtyTexture dirty(textures); |
761 | for (LLWorld::region_list_t::iterator iter = LLWorld::getInstance()->getRegionList().begin(); | 761 | for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); |
762 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) | 762 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) |
763 | { | 763 | { |
764 | LLViewerRegion* region = *iter; | 764 | LLViewerRegion* region = *iter; |
@@ -1149,7 +1149,7 @@ void LLPipeline::updateMove() | |||
1149 | { | 1149 | { |
1150 | LLFastTimer ot(LLFastTimer::FTM_OCTREE_BALANCE); | 1150 | LLFastTimer ot(LLFastTimer::FTM_OCTREE_BALANCE); |
1151 | 1151 | ||
1152 | for (LLWorld::region_list_t::iterator iter = LLWorld::getInstance()->getRegionList().begin(); | 1152 | for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); |
1153 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) | 1153 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) |
1154 | { | 1154 | { |
1155 | LLViewerRegion* region = *iter; | 1155 | LLViewerRegion* region = *iter; |
@@ -1226,7 +1226,7 @@ void LLPipeline::updateCull(LLCamera& camera, LLCullResult& result, S32 water_cl | |||
1226 | gGL.setColorMask(false, false); | 1226 | gGL.setColorMask(false, false); |
1227 | LLGLDepthTest depth(GL_TRUE, GL_FALSE); | 1227 | LLGLDepthTest depth(GL_TRUE, GL_FALSE); |
1228 | 1228 | ||
1229 | for (LLWorld::region_list_t::iterator iter = LLWorld::getInstance()->getRegionList().begin(); | 1229 | for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); |
1230 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) | 1230 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) |
1231 | { | 1231 | { |
1232 | LLViewerRegion* region = *iter; | 1232 | LLViewerRegion* region = *iter; |
@@ -1609,7 +1609,7 @@ void LLPipeline::shiftObjects(const LLVector3 &offset) | |||
1609 | } | 1609 | } |
1610 | mShiftList.resize(0); | 1610 | mShiftList.resize(0); |
1611 | 1611 | ||
1612 | for (LLWorld::region_list_t::iterator iter = LLWorld::getInstance()->getRegionList().begin(); | 1612 | for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); |
1613 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) | 1613 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) |
1614 | { | 1614 | { |
1615 | LLViewerRegion* region = *iter; | 1615 | LLViewerRegion* region = *iter; |
@@ -2591,7 +2591,7 @@ void LLPipeline::renderDebug() | |||
2591 | gGL.setColorMask(true, false); | 2591 | gGL.setColorMask(true, false); |
2592 | 2592 | ||
2593 | // Debug stuff. | 2593 | // Debug stuff. |
2594 | for (LLWorld::region_list_t::iterator iter = LLWorld::getInstance()->getRegionList().begin(); | 2594 | for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); |
2595 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) | 2595 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) |
2596 | { | 2596 | { |
2597 | LLViewerRegion* region = *iter; | 2597 | LLViewerRegion* region = *iter; |
@@ -4037,7 +4037,7 @@ LLViewerObject* LLPipeline::lineSegmentIntersectInWorld(const LLVector3& start, | |||
4037 | 4037 | ||
4038 | sPickAvatar = FALSE; //LLToolMgr::getInstance()->inBuildMode() ? FALSE : TRUE; | 4038 | sPickAvatar = FALSE; //LLToolMgr::getInstance()->inBuildMode() ? FALSE : TRUE; |
4039 | 4039 | ||
4040 | for (LLWorld::region_list_t::iterator iter = LLWorld::getInstance()->getRegionList().begin(); | 4040 | for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); |
4041 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) | 4041 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) |
4042 | { | 4042 | { |
4043 | LLViewerRegion* region = *iter; | 4043 | LLViewerRegion* region = *iter; |
@@ -4094,7 +4094,7 @@ LLViewerObject* LLPipeline::lineSegmentIntersectInWorld(const LLVector3& start, | |||
4094 | 4094 | ||
4095 | //check against avatars | 4095 | //check against avatars |
4096 | sPickAvatar = TRUE; | 4096 | sPickAvatar = TRUE; |
4097 | for (LLWorld::region_list_t::iterator iter = LLWorld::getInstance()->getRegionList().begin(); | 4097 | for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); |
4098 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) | 4098 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) |
4099 | { | 4099 | { |
4100 | LLViewerRegion* region = *iter; | 4100 | LLViewerRegion* region = *iter; |
@@ -4171,7 +4171,7 @@ LLViewerObject* LLPipeline::lineSegmentIntersectInHUD(const LLVector3& start, co | |||
4171 | { | 4171 | { |
4172 | LLDrawable* drawable = NULL; | 4172 | LLDrawable* drawable = NULL; |
4173 | 4173 | ||
4174 | for (LLWorld::region_list_t::iterator iter = LLWorld::getInstance()->getRegionList().begin(); | 4174 | for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); |
4175 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) | 4175 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) |
4176 | { | 4176 | { |
4177 | LLViewerRegion* region = *iter; | 4177 | LLViewerRegion* region = *iter; |
@@ -4234,7 +4234,7 @@ void LLPipeline::resetVertexBuffers() | |||
4234 | { | 4234 | { |
4235 | sRenderBump = gSavedSettings.getBOOL("RenderObjectBump"); | 4235 | sRenderBump = gSavedSettings.getBOOL("RenderObjectBump"); |
4236 | 4236 | ||
4237 | for (LLWorld::region_list_t::iterator iter = LLWorld::getInstance()->getRegionList().begin(); | 4237 | for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); |
4238 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) | 4238 | iter != LLWorld::getInstance()->getRegionList().end(); ++iter) |
4239 | { | 4239 | { |
4240 | LLViewerRegion* region = *iter; | 4240 | LLViewerRegion* region = *iter; |