aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llselectmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llselectmgr.cpp')
-rw-r--r--linden/indra/newview/llselectmgr.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index 2e4983c..e3b57b8 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -4828,7 +4828,7 @@ void LLSelectMgr::renderSilhouettes(BOOL for_hud)
4828 return; 4828 return;
4829 } 4829 }
4830 4830
4831 LLViewerImage::bindTexture(mSilhouetteImagep); 4831 gGL.getTexUnit(0)->bind(mSilhouetteImagep.get());
4832 LLGLSPipelineSelection gls_select; 4832 LLGLSPipelineSelection gls_select;
4833 gGL.setAlphaRejectSettings(LLRender::CF_GREATER, 0.f); 4833 gGL.setAlphaRejectSettings(LLRender::CF_GREATER, 0.f);
4834 LLGLEnable blend(GL_BLEND); 4834 LLGLEnable blend(GL_BLEND);
@@ -4936,7 +4936,7 @@ void LLSelectMgr::renderSilhouettes(BOOL for_hud)
4936 stop_glerror(); 4936 stop_glerror();
4937 } 4937 }
4938 4938
4939 mSilhouetteImagep->unbindTexture(0, GL_TEXTURE_2D); 4939 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
4940 gGL.setAlphaRejectSettings(LLRender::CF_DEFAULT); 4940 gGL.setAlphaRejectSettings(LLRender::CF_DEFAULT);
4941} 4941}
4942 4942
@@ -5313,7 +5313,7 @@ void LLSelectNode::renderOneSilhouette(const LLColor4 &color)
5313 5313
5314 LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE, GL_GEQUAL); 5314 LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE, GL_GEQUAL);
5315 gGL.setAlphaRejectSettings(LLRender::CF_DEFAULT); 5315 gGL.setAlphaRejectSettings(LLRender::CF_DEFAULT);
5316 gGL.begin(LLVertexBuffer::LINES); 5316 gGL.begin(LLRender::LINES);
5317 { 5317 {
5318 S32 i = 0; 5318 S32 i = 0;
5319 for (S32 seg_num = 0; seg_num < (S32)mSilhouetteSegments.size(); seg_num++) 5319 for (S32 seg_num = 0; seg_num < (S32)mSilhouetteSegments.size(); seg_num++)
@@ -5334,7 +5334,7 @@ void LLSelectNode::renderOneSilhouette(const LLColor4 &color)
5334 5334
5335 gGL.flush(); 5335 gGL.flush();
5336 gGL.setSceneBlendType(LLRender::BT_ALPHA); 5336 gGL.setSceneBlendType(LLRender::BT_ALPHA);
5337 gGL.begin(LLVertexBuffer::TRIANGLES); 5337 gGL.begin(LLRender::TRIANGLES);
5338 { 5338 {
5339 S32 i = 0; 5339 S32 i = 0;
5340 for (S32 seg_num = 0; seg_num < (S32)mSilhouetteSegments.size(); seg_num++) 5340 for (S32 seg_num = 0; seg_num < (S32)mSilhouetteSegments.size(); seg_num++)
@@ -5940,9 +5940,9 @@ S32 LLObjectSelection::getRootObjectCount()
5940 return count; 5940 return count;
5941} 5941}
5942 5942
5943bool LLObjectSelection::applyToObjects(LLSelectedObjectFunctor* func, bool firstonly) 5943bool LLObjectSelection::applyToObjects(LLSelectedObjectFunctor* func)
5944{ 5944{
5945 bool result = firstonly ? false : true; 5945 bool result = true;
5946 for (iterator iter = begin(); iter != end(); ) 5946 for (iterator iter = begin(); iter != end(); )
5947 { 5947 {
5948 iterator nextiter = iter++; 5948 iterator nextiter = iter++;
@@ -5950,10 +5950,7 @@ bool LLObjectSelection::applyToObjects(LLSelectedObjectFunctor* func, bool first
5950 if (!object) 5950 if (!object)
5951 continue; 5951 continue;
5952 bool r = func->apply(object); 5952 bool r = func->apply(object);
5953 if (firstonly && r) 5953 result = result && r;
5954 return true;
5955 else
5956 result = result && r;
5957 } 5954 }
5958 return result; 5955 return result;
5959} 5956}