From 8f9de319bf82b3ba514a8ee8b813995a44372ea7 Mon Sep 17 00:00:00 2001 From: Salvatore La Bua Date: Sun, 29 Sep 2013 17:31:17 +0200 Subject: [PATCH] Use correct matrixMode to draw chat rings, thanks LightDrake --- indra/newview/llnetmap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/indra/newview/llnetmap.cpp b/indra/newview/llnetmap.cpp index 96854b324..4337e6936 100644 --- a/indra/newview/llnetmap.cpp +++ b/indra/newview/llnetmap.cpp @@ -500,7 +500,6 @@ void LLNetMap::draw() dot_width); // Draw chat range ring(s) - //static LLUICachedControl chat_rings("MiniMapChatRings"); static LLUICachedControl whisper_ring("MiniMapWhisperRing"); static LLUICachedControl chat_ring("MiniMapChatRing"); static LLUICachedControl shout_ring("MiniMapShoutRing"); @@ -616,7 +615,7 @@ void LLNetMap::drawRing(const F32 radius, const LLVector3 pos_map, const LLColor // 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);