Bug 1286412 - Use surface->GetSize() instead of aRect dimensions.
MozReview-Commit-ID: 2Fxcqh6TzjN
--- a/gfx/layers/opengl/CompositorOGL.cpp
+++ b/gfx/layers/opengl/CompositorOGL.cpp
@@ -1360,17 +1360,18 @@ CompositorOGL::DrawQuad(const Rect& aRec
BindMaskForProgram(program, sourceMask, LOCAL_GL_TEXTURE1, maskQuadTransform);
}
if (mixBlendBackdrop) {
BindBackdrop(program, mixBlendBackdrop, LOCAL_GL_TEXTURE2);
}
if (config.mFeatures & ENABLE_TEXTURE_RECT) {
// 2DRect case, get the multiplier right for a sampler2DRect
- program->SetTexCoordMultiplier(aRect.width, aRect.height);
+ program->SetTexCoordMultiplier(surface->GetSize().width,
+ surface->GetSize().height);
}
// Drawing is always flipped, but when copying between surfaces we want to avoid
// this. Pass true for the flip parameter to introduce a second flip
// that cancels the other one out.
didSetBlendMode = SetBlendMode(gl(), blendMode);
BindAndDrawQuad(program, aRect);
}