summaryrefslogtreecommitdiff
path: root/indra/newview/llhudeffectlookat.cpp
diff options
context:
space:
mode:
authorBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
committerBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
commit6d52efe452aa8469e0343da1c7d108f3f52ab651 (patch)
treea87be48e9840d7fc1f7ee514d7c7f994e71fdb3c /indra/newview/llhudeffectlookat.cpp
parent6027ad2630b8650cabcf00628ee9b0d25bedd67f (diff)
Merge of windlight into release (QAR-286). This includes all changes in
windlight14 which have passed QA (up through r79932). svn merge -r 80831:80833 svn+ssh://svn.lindenlab.com/svn/linden/branches/merge_windlight14_r80620
Diffstat (limited to 'indra/newview/llhudeffectlookat.cpp')
-rw-r--r--indra/newview/llhudeffectlookat.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/indra/newview/llhudeffectlookat.cpp b/indra/newview/llhudeffectlookat.cpp
index 16c77149d5..920a1caaf3 100644
--- a/indra/newview/llhudeffectlookat.cpp
+++ b/indra/newview/llhudeffectlookat.cpp
@@ -33,6 +33,8 @@
#include "llhudeffectlookat.h"
+#include "llglimmediate.h"
+
#include "message.h"
#include "llagent.h"
#include "llvoavatar.h"
@@ -498,19 +500,19 @@ void LLHUDEffectLookAt::render()
glPushMatrix();
glTranslatef(target.mV[VX], target.mV[VY], target.mV[VZ]);
glScalef(0.3f, 0.3f, 0.3f);
- glBegin(GL_LINES);
+ gGL.begin(GL_LINES);
{
LLColor3 color = (*mAttentions)[mTargetType].mColor;
- glColor3f(color.mV[VRED], color.mV[VGREEN], color.mV[VBLUE]);
- glVertex3f(-1.f, 0.f, 0.f);
- glVertex3f(1.f, 0.f, 0.f);
+ gGL.color3f(color.mV[VRED], color.mV[VGREEN], color.mV[VBLUE]);
+ gGL.vertex3f(-1.f, 0.f, 0.f);
+ gGL.vertex3f(1.f, 0.f, 0.f);
- glVertex3f(0.f, -1.f, 0.f);
- glVertex3f(0.f, 1.f, 0.f);
+ gGL.vertex3f(0.f, -1.f, 0.f);
+ gGL.vertex3f(0.f, 1.f, 0.f);
- glVertex3f(0.f, 0.f, -1.f);
- glVertex3f(0.f, 0.f, 1.f);
- } glEnd();
+ gGL.vertex3f(0.f, 0.f, -1.f);
+ gGL.vertex3f(0.f, 0.f, 1.f);
+ } gGL.end();
glPopMatrix();
}
}