aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudeffectlookat.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-01 17:39:58 -0600
committerJacek Antonelli2008-12-01 17:40:06 -0600
commit7abecb48babe6a6f09bf6692ba55076546cfced9 (patch)
tree8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llhudeffectlookat.cpp
parentSecond Life viewer sources 1.21.6 (diff)
downloadmeta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz
Second Life viewer sources 1.22.0-RC
Diffstat (limited to 'linden/indra/newview/llhudeffectlookat.cpp')
-rw-r--r--linden/indra/newview/llhudeffectlookat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llhudeffectlookat.cpp b/linden/indra/newview/llhudeffectlookat.cpp
index b5f6ec7..5f0bb90 100644
--- a/linden/indra/newview/llhudeffectlookat.cpp
+++ b/linden/indra/newview/llhudeffectlookat.cpp
@@ -499,14 +499,14 @@ void LLHUDEffectLookAt::render()
499{ 499{
500 if (sDebugLookAt && mSourceObject.notNull()) 500 if (sDebugLookAt && mSourceObject.notNull())
501 { 501 {
502 LLGLSNoTexture gls_no_texture; 502 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
503 503
504 LLVector3 target = mTargetPos + ((LLVOAvatar*)(LLViewerObject*)mSourceObject)->mHeadp->getWorldPosition(); 504 LLVector3 target = mTargetPos + ((LLVOAvatar*)(LLViewerObject*)mSourceObject)->mHeadp->getWorldPosition();
505 glMatrixMode(GL_MODELVIEW); 505 glMatrixMode(GL_MODELVIEW);
506 gGL.pushMatrix(); 506 gGL.pushMatrix();
507 gGL.translatef(target.mV[VX], target.mV[VY], target.mV[VZ]); 507 gGL.translatef(target.mV[VX], target.mV[VY], target.mV[VZ]);
508 glScalef(0.3f, 0.3f, 0.3f); 508 glScalef(0.3f, 0.3f, 0.3f);
509 gGL.begin(LLVertexBuffer::LINES); 509 gGL.begin(LLRender::LINES);
510 { 510 {
511 LLColor3 color = (*mAttentions)[mTargetType].mColor; 511 LLColor3 color = (*mAttentions)[mTargetType].mColor;
512 gGL.color3f(color.mV[VRED], color.mV[VGREEN], color.mV[VBLUE]); 512 gGL.color3f(color.mV[VRED], color.mV[VGREEN], color.mV[VBLUE]);