aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-08-12 17:13:38 +0200
committerQt by Nokia <qt-info@nokia.com>2011-08-16 08:18:10 +0200
commit5c4cf98424de18dd07b4cabfd2f45331f8cbbdab (patch)
tree345240877ecf304b54a401e610507cb6b3f4ac6c /src
parentec68295138b3cd4ee45cb28ef604212c4e9a9f50 (diff)
Fixed clipping on perspective transformed QML2 elements.
Task-number: QTBUG-19901 Change-Id: I1f6bd31f4afec3d9b199086a01ffe5e714a20efa Reviewed-on: http://codereview.qt.nokia.com/2915 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/scenegraph/coreapi/qsgrenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/scenegraph/coreapi/qsgrenderer.cpp b/src/declarative/scenegraph/coreapi/qsgrenderer.cpp
index e5c6bfb4f8..73d660b710 100644
--- a/src/declarative/scenegraph/coreapi/qsgrenderer.cpp
+++ b/src/declarative/scenegraph/coreapi/qsgrenderer.cpp
@@ -398,8 +398,8 @@ QSGRenderer::ClipType QSGRenderer::updateStencilClip(const QSGClipNode *clip)
// TODO: Check for multisampling and pixel grid alignment.
bool canUseScissor = clip->isRectangular()
- && qFuzzyIsNull(m(0, 1)) && qFuzzyIsNull(m(0, 2))
- && qFuzzyIsNull(m(1, 0)) && qFuzzyIsNull(m(1, 2));
+ && qFuzzyIsNull(m(0, 1)) && qFuzzyIsNull(m(1, 0))
+ && qFuzzyIsNull(m(3, 0)) && qFuzzyIsNull(m(3, 1));
if (canUseScissor) {
QRectF bbox = clip->clipRect();