Added blendfunc checks when RenderDebugGL is TRUE.

This commit is contained in:
Shyotl
2013-03-30 01:26:07 -05:00
parent 03272c8875
commit b07ab02f54
5 changed files with 29 additions and 1 deletions

View File

@@ -1516,6 +1516,7 @@ void render_ui_3d()
stop_glerror();
}
extern void check_blend_funcs();
void render_ui_2d()
{
LLGLSUIDefault gls_ui;
@@ -1561,7 +1562,9 @@ void render_ui_2d()
gGL.popMatrix();
stop_glerror();
}
if(gDebugGL)check_blend_funcs();
gViewerWindow->draw();
if(gDebugGL)check_blend_funcs();
// reset current origin for font rendering, in case of tiling render
LLFontGL::sCurOrigin.set(0, 0);