aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:54 -0500
committerJacek Antonelli2008-08-15 23:45:54 -0500
commitd0b03a62fd799317d5da0bd56615739ce3b5b052 (patch)
tree8bc79bbbb52e18294f62810d9fa66ce136f90e2d /linden/indra/newview/pipeline.cpp
parentSecond Life viewer sources 1.20.8 (diff)
downloadmeta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.zip
meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.gz
meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.bz2
meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.xz
Second Life viewer sources 1.20.9
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/pipeline.cpp25
1 files changed, 19 insertions, 6 deletions
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp
index 20fd5a7..67bf647 100644
--- a/linden/indra/newview/pipeline.cpp
+++ b/linden/indra/newview/pipeline.cpp
@@ -108,8 +108,6 @@
108//#define DEBUG_INDICES 108//#define DEBUG_INDICES
109#endif 109#endif
110 110
111void render_ui_and_swap_if_needed();
112
113const F32 BACKLIGHT_DAY_MAGNITUDE_AVATAR = 0.2f; 111const F32 BACKLIGHT_DAY_MAGNITUDE_AVATAR = 0.2f;
114const F32 BACKLIGHT_NIGHT_MAGNITUDE_AVATAR = 0.1f; 112const F32 BACKLIGHT_NIGHT_MAGNITUDE_AVATAR = 0.1f;
115const F32 BACKLIGHT_DAY_MAGNITUDE_OBJECT = 0.1f; 113const F32 BACKLIGHT_DAY_MAGNITUDE_OBJECT = 0.1f;
@@ -1546,10 +1544,8 @@ void LLPipeline::shiftObjects(const LLVector3 &offset)
1546 1544
1547 assertInitialized(); 1545 assertInitialized();
1548 1546
1549 //do a swap to indicate an invalid previous frame camera
1550 render_ui_and_swap_if_needed();
1551 glClear(GL_DEPTH_BUFFER_BIT); 1547 glClear(GL_DEPTH_BUFFER_BIT);
1552 gDisplaySwapBuffers = FALSE; 1548 gDepthDirty = FALSE;
1553 1549
1554 for (LLDrawable::drawable_vector_t::iterator iter = mShiftList.begin(); 1550 for (LLDrawable::drawable_vector_t::iterator iter = mShiftList.begin();
1555 iter != mShiftList.end(); iter++) 1551 iter != mShiftList.end(); iter++)
@@ -1974,7 +1970,10 @@ void LLPipeline::postSort(LLCamera& camera)
1974 } 1970 }
1975 } 1971 }
1976 1972
1977 //build render map 1973 //rebuild groups
1974 sCull->assertDrawMapsEmpty();
1975
1976 LLSpatialGroup::sNoDelete = FALSE;
1978 for (LLCullResult::sg_list_t::iterator i = sCull->beginVisibleGroups(); i != sCull->endVisibleGroups(); ++i) 1977 for (LLCullResult::sg_list_t::iterator i = sCull->beginVisibleGroups(); i != sCull->endVisibleGroups(); ++i)
1979 { 1978 {
1980 LLSpatialGroup* group = *i; 1979 LLSpatialGroup* group = *i;
@@ -1985,6 +1984,18 @@ void LLPipeline::postSort(LLCamera& camera)
1985 } 1984 }
1986 1985
1987 group->rebuildGeom(); 1986 group->rebuildGeom();
1987 }
1988 LLSpatialGroup::sNoDelete = TRUE;
1989
1990 //build render map
1991 for (LLCullResult::sg_list_t::iterator i = sCull->beginVisibleGroups(); i != sCull->endVisibleGroups(); ++i)
1992 {
1993 LLSpatialGroup* group = *i;
1994 if (sUseOcclusion &&
1995 group->isState(LLSpatialGroup::OCCLUDED))
1996 {
1997 continue;
1998 }
1988 1999
1989 for (LLSpatialGroup::draw_map_t::iterator j = group->mDrawMap.begin(); j != group->mDrawMap.end(); ++j) 2000 for (LLSpatialGroup::draw_map_t::iterator j = group->mDrawMap.begin(); j != group->mDrawMap.end(); ++j)
1990 { 2001 {
@@ -2113,6 +2124,8 @@ void LLPipeline::postSort(LLCamera& camera)
2113 } func; 2124 } func;
2114 LLSelectMgr::getInstance()->getSelection()->applyToTEs(&func); 2125 LLSelectMgr::getInstance()->getSelection()->applyToTEs(&func);
2115 } 2126 }
2127
2128 LLSpatialGroup::sNoDelete = FALSE;
2116} 2129}
2117 2130
2118 2131