mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1017427 - Fix CompositorOGL RenderOffset not offsetting clipping rect. r=nical
This commit is contained in:
parent
9007c5ebe4
commit
36fd5d4bda
@ -1008,6 +1008,9 @@ CompositorOGL::DrawQuad(const Rect& aRect,
|
||||
|
||||
IntRect intClipRect;
|
||||
aClipRect.ToIntRect(&intClipRect);
|
||||
if (!mTarget) {
|
||||
intClipRect.MoveBy(mRenderOffset.x, mRenderOffset.y);
|
||||
}
|
||||
|
||||
gl()->fScissor(intClipRect.x, FlipY(intClipRect.y + intClipRect.height),
|
||||
intClipRect.width, intClipRect.height);
|
||||
|
Loading…
Reference in New Issue
Block a user