summaryrefslogtreecommitdiff
path: root/indra/newview/llhudeffectpointat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llhudeffectpointat.cpp')
-rw-r--r--indra/newview/llhudeffectpointat.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/indra/newview/llhudeffectpointat.cpp b/indra/newview/llhudeffectpointat.cpp
index fbb5ba5d62..2679ed5fbb 100644
--- a/indra/newview/llhudeffectpointat.cpp
+++ b/indra/newview/llhudeffectpointat.cpp
@@ -34,6 +34,7 @@
#include "llhudeffectpointat.h"
#include "llgl.h"
+#include "llglimmediate.h"
#include "llagent.h"
#include "lldrawable.h"
@@ -329,18 +330,18 @@ void LLHUDEffectPointAt::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);
{
- glColor3f(1.f, 0.f, 0.f);
- glVertex3f(-1.f, 0.f, 0.f);
- glVertex3f(1.f, 0.f, 0.f);
+ gGL.color3f(1.f, 0.f, 0.f);
+ 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();
}
}