Use correct matrixMode to draw chat rings, thanks LightDrake

This commit is contained in:
Salvatore La Bua
2013-09-29 17:31:17 +02:00
parent af1480615f
commit 8f9de319bf

View File

@@ -500,7 +500,6 @@ void LLNetMap::draw()
dot_width);
// Draw chat range ring(s)
//static LLUICachedControl<bool> chat_rings("MiniMapChatRings");
static LLUICachedControl<bool> whisper_ring("MiniMapWhisperRing");
static LLUICachedControl<bool> chat_ring("MiniMapChatRing");
static LLUICachedControl<bool> shout_ring("MiniMapShoutRing");
@@ -616,7 +615,7 @@ void LLNetMap::drawRing(const F32 radius, const LLVector3 pos_map, const LLColor
// </FS:CR> Aurora Sim
F32 radius_pixels = radius * meters_to_pixels;
glMatrixMode(GL_MODELVIEW);
gGL.matrixMode(LLRender::MM_MODELVIEW);
gGL.pushMatrix();
gGL.translatef((F32)pos_map.mV[VX], (F32)pos_map.mV[VY], 0.f);
gl_ring(radius_pixels, WIDTH_PIXELS, color, color, CIRCLE_STEPS, FALSE);