mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 876256 - Restore the previous scissor rect at the end of CompositorOGL::DrawQuad. r=mattwoodrow
This commit is contained in:
parent
c437a3a2c0
commit
e2c9b54971
@ -962,8 +962,8 @@ CompositorOGL::DrawQuad(const Rect& aRect, const Rect& aClipRect,
|
||||
|
||||
IntRect intClipRect;
|
||||
aClipRect.ToIntRect(&intClipRect);
|
||||
mGLContext->fScissor(intClipRect.x, intClipRect.y,
|
||||
intClipRect.width, intClipRect.height);
|
||||
mGLContext->PushScissorRect(nsIntRect(intClipRect.x, intClipRect.y,
|
||||
intClipRect.width, intClipRect.height));
|
||||
|
||||
MaskType maskType;
|
||||
EffectMask* effectMask;
|
||||
@ -1198,6 +1198,7 @@ CompositorOGL::DrawQuad(const Rect& aRect, const Rect& aClipRect,
|
||||
break;
|
||||
}
|
||||
|
||||
mGLContext->PopScissorRect();
|
||||
mGLContext->fActiveTexture(LOCAL_GL_TEXTURE0);
|
||||
// in case rendering has used some other GL context
|
||||
MakeCurrent();
|
||||
|
Loading…
Reference in New Issue
Block a user