Added blendfunc checks when RenderDebugGL is TRUE.
This commit is contained in:
@@ -2334,6 +2334,7 @@ void LLViewerWindow::drawDebugText()
|
||||
}
|
||||
}
|
||||
|
||||
extern void check_blend_funcs();
|
||||
void LLViewerWindow::draw()
|
||||
{
|
||||
|
||||
@@ -2411,7 +2412,9 @@ void LLViewerWindow::draw()
|
||||
|
||||
// Draw all nested UI views.
|
||||
// No translation needed, this view is glued to 0,0
|
||||
if(gDebugGL)check_blend_funcs();
|
||||
mRootView->draw();
|
||||
if(gDebugGL)check_blend_funcs();
|
||||
|
||||
// Draw optional on-top-of-everyone view
|
||||
LLUICtrl* top_ctrl = gFocusMgr.getTopCtrl();
|
||||
@@ -2423,7 +2426,9 @@ void LLViewerWindow::draw()
|
||||
gGL.matrixMode(LLRender::MM_MODELVIEW);
|
||||
LLUI::pushMatrix();
|
||||
LLUI::translate( (F32) screen_x, (F32) screen_y, 0.f);
|
||||
if(gDebugGL)check_blend_funcs();
|
||||
top_ctrl->draw();
|
||||
if(gDebugGL)check_blend_funcs();
|
||||
LLUI::popMatrix();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user