From: Kim Motoyoshi Kalland Date: Fri, 12 Aug 2011 15:13:38 +0000 (+0200) Subject: Fixed clipping on perspective transformed QML2 elements. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5c4cf98424de18dd07b4cabfd2f45331f8cbbdab;p=konrad%2Fqtdeclarative.git 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 Reviewed-by: Gunnar Sletta --- diff --git a/src/declarative/scenegraph/coreapi/qsgrenderer.cpp b/src/declarative/scenegraph/coreapi/qsgrenderer.cpp index e5c6bfb..73d660b 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();