зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 07a74e6e53b2 (bug 1017427
) for reftest failures on a CLOSED TREE
This commit is contained in:
Родитель
34b218fdf2
Коммит
d4c8237c25
|
@ -991,10 +991,8 @@ CompositorOGL::DrawQuad(const Rect& aRect,
|
|||
|
||||
MOZ_ASSERT(mFrameInProgress, "frame not started");
|
||||
|
||||
IntPoint offset = mCurrentRenderTarget->GetOrigin();
|
||||
IntRect intClipRect;
|
||||
aClipRect.ToIntRect(&intClipRect);
|
||||
intClipRect.MoveBy(-offset.x, -offset.y);
|
||||
|
||||
gl()->fScissor(intClipRect.x, FlipY(intClipRect.y + intClipRect.height),
|
||||
intClipRect.width, intClipRect.height);
|
||||
|
@ -1068,6 +1066,7 @@ CompositorOGL::DrawQuad(const Rect& aRect,
|
|||
program->Activate();
|
||||
program->SetProjectionMatrix(mProjMatrix);
|
||||
program->SetLayerTransform(aTransform);
|
||||
IntPoint offset = mCurrentRenderTarget->GetOrigin();
|
||||
program->SetRenderOffset(offset.x, offset.y);
|
||||
if (aOpacity != 1.f)
|
||||
program->SetLayerOpacity(aOpacity);
|
||||
|
|
Загрузка…
Ссылка в новой задаче