SH-2507 Fix for crash when rendering axes (develop->render->show axes)
parent
da092a06cf
commit
ef8bdb5d95
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue