Bug 1017427 - Fix CompositorOGL RenderOffset not offsetting clipping rect. r=nical

This commit is contained in:
Chris Lord 2014-06-09 16:53:35 +01:00
parent 9007c5ebe4
commit 36fd5d4bda

View File

@ -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);