Bug 634132 - Reset the current GL context after drawing thebes layers. r=joe a=blocking2.0

This commit is contained in:
Matt Woodrow 2011-02-24 09:31:49 +13:00
parent 7f703501cd
commit ff809e8adc

View File

@ -756,6 +756,9 @@ ThebesLayerOGL::RenderLayer(int aPreviousFrameBuffer,
}
}
// Drawing thebes layers can change the current context, reset it.
gl()->MakeCurrent();
DEBUG_GL_ERROR_CHECK(gl());
gl()->fBindFramebuffer(LOCAL_GL_FRAMEBUFFER, aPreviousFrameBuffer);