Bug 863968. Don't unbind frame buffer if we didn't composite. r=bjacob

This commit is contained in:
Nicholas Cameron 2013-04-23 02:59:50 +12:00
Родитель 289fdac403
Коммит 95eddc0e03
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -294,9 +294,9 @@ ContainerRender(Container* aContainer,
aManager->SetupPipeline(viewport.width, viewport.height,
LayerManagerOGL::ApplyWorldTransform);
aContainer->gl()->PopScissorRect();
aContainer->gl()->fBindFramebuffer(LOCAL_GL_FRAMEBUFFER, aPreviousFrameBuffer);
if (!aManager->CompositingDisabled()) {
aContainer->gl()->fBindFramebuffer(LOCAL_GL_FRAMEBUFFER, aPreviousFrameBuffer);
aContainer->gl()->fDeleteFramebuffers(1, &frameBuffer);
aContainer->gl()->fActiveTexture(LOCAL_GL_TEXTURE0);