diff options
author | Oz Linden <oz@lindenlab.com> | 2012-08-15 17:07:10 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-08-15 17:07:10 -0400 |
commit | 97106c2dea855e7a7a6378e0b6971d7a8226f1f6 (patch) | |
tree | b1cc26bc18f8ec28fba94e0f91035bfb73d96452 /indra/newview/pipeline.cpp | |
parent | 981190cf3151f436d370b841b1baa5a2a607b94d (diff) | |
parent | f2eef652063f7f2aee7296ff41cf5d34272cc12b (diff) |
merge changes for DRTVWR-194
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r-- | indra/newview/pipeline.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index f6b0d6c5fa..75eb8c460e 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -2563,6 +2563,31 @@ void LLPipeline::updateGL() static LLFastTimer::DeclareTimer FTM_REBUILD_PRIORITY_GROUPS("Rebuild Priority Groups"); +void LLPipeline::clearRebuildGroups() +{ + mGroupQ1Locked = true; + // Iterate through all drawables on the priority build queue, + for (LLSpatialGroup::sg_vector_t::iterator iter = mGroupQ1.begin(); + iter != mGroupQ1.end(); ++iter) + { + LLSpatialGroup* group = *iter; + group->clearState(LLSpatialGroup::IN_BUILD_Q1); + } + mGroupQ1.clear(); + mGroupQ1Locked = false; + + mGroupQ2Locked = true; + for (LLSpatialGroup::sg_vector_t::iterator iter = mGroupQ2.begin(); + iter != mGroupQ2.end(); ++iter) + { + LLSpatialGroup* group = *iter; + group->clearState(LLSpatialGroup::IN_BUILD_Q2); + } + + mGroupQ2.clear(); + mGroupQ2Locked = false; +} + void LLPipeline::rebuildPriorityGroups() { LLFastTimer t(FTM_REBUILD_PRIORITY_GROUPS); |