Bug 956401 - 1/9 - SetRenderTarget doesn't need to touch the scissor rect - r=nrc

This commit is contained in:
Benoit Jacob 2014-01-07 15:02:18 -05:00
parent e74aa72948
commit 8a1c3fc36c

View File

@ -717,14 +717,6 @@ CompositorOGL::SetRenderTarget(CompositingRenderTarget *aSurface)
CompositingRenderTargetOGL* surface
= static_cast<CompositingRenderTargetOGL*>(aSurface);
if (mCurrentRenderTarget != surface) {
// Restore the scissor rect that was active before we set the current
// render target.
mGLContext->PopScissorRect();
// Save the current scissor rect so that we can pop back to it when
// changing the render target again.
mGLContext->PushScissorRect();
surface->BindRenderTarget();
mCurrentRenderTarget = surface;
}