summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerdisplay.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-11-08 15:15:58 -0600
committerDave Parks <davep@lindenlab.com>2011-11-08 15:15:58 -0600
commitef8bdb5d95ebd869279ee4bb0510d54e51ab747f (patch)
treec25f575a9c509f0c295e91c29870b79c13b9706e /indra/newview/llviewerdisplay.cpp
parentda092a06cf42902de4f5a042fd0b314b34e4392d (diff)
SH-2507 Fix for crash when rendering axes (develop->render->show axes)
Diffstat (limited to 'indra/newview/llviewerdisplay.cpp')
-rw-r--r--indra/newview/llviewerdisplay.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp
index 86102e9a15..3f0b5bf3fb 100644
--- a/indra/newview/llviewerdisplay.cpp
+++ b/indra/newview/llviewerdisplay.cpp
@@ -1341,12 +1341,6 @@ void render_ui_3d()
// Debugging stuff goes before the UI.
- // Coordinate axes
- if (gSavedSettings.getBOOL("ShowAxes"))
- {
- draw_axes();
- }
-
stop_glerror();
if (LLGLSLShader::sNoFixedFunction)
@@ -1354,6 +1348,12 @@ void render_ui_3d()
gUIProgram.bind();
}
+ // Coordinate axes
+ if (gSavedSettings.getBOOL("ShowAxes"))
+ {
+ draw_axes();
+ }
+
gViewerWindow->renderSelections(FALSE, FALSE, TRUE); // Non HUD call in render_hud_elements
stop_glerror();
}