SH-2507 Fix for crash when rendering axes (develop->render->show axes)

meow-7.2.2
Dave Parks 2011-11-08 15:15:58 -06:00
parent da092a06cf
commit ef8bdb5d95
1 changed files with 6 additions and 6 deletions

View File

@ -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();
}