diff --git a/gfx/layers/opengl/CompositorOGL.cpp b/gfx/layers/opengl/CompositorOGL.cpp index e6ef98e59fd0..6eb693edfcd1 100644 --- a/gfx/layers/opengl/CompositorOGL.cpp +++ b/gfx/layers/opengl/CompositorOGL.cpp @@ -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);