diff options
Diffstat (limited to 'linden/indra/newview/llhudeffectlookat.cpp')
-rw-r--r-- | linden/indra/newview/llhudeffectlookat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llhudeffectlookat.cpp b/linden/indra/newview/llhudeffectlookat.cpp index b5f6ec7..3a12dad 100644 --- a/linden/indra/newview/llhudeffectlookat.cpp +++ b/linden/indra/newview/llhudeffectlookat.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2002-2008, Linden Research, Inc. | 7 | * Copyright (c) 2002-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -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]); |