mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 956401 - 1/9 - SetRenderTarget doesn't need to touch the scissor rect - r=nrc
This commit is contained in:
parent
e74aa72948
commit
8a1c3fc36c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user