Bug 809493 - Restore the blend equation state after drawing the underlay. r=joe

This commit is contained in:
Benoit Girard 2012-11-08 10:10:51 -05:00
parent 5114440464
commit 057737fe06

View File

@ -992,6 +992,10 @@ LayerManagerOGL::Render()
// Allow widget to render a custom background.
mWidget->DrawWindowUnderlay(this, rect);
// Reset some state that might of been clobbered by the underlay.
mGLContext->fBlendFuncSeparate(LOCAL_GL_ONE, LOCAL_GL_ONE_MINUS_SRC_ALPHA,
LOCAL_GL_ONE, LOCAL_GL_ONE);
// Render our layers.
RootLayer()->RenderLayer(mGLContext->IsDoubleBuffered() ? 0 : mBackBufferFBO,
nsIntPoint(0, 0));