diff options
author | Kim Motoyoshi Kalland <[email protected]> | 2011-08-12 17:13:38 +0200 |
---|---|---|
committer | Qt by Nokia <[email protected]> | 2011-08-16 08:18:10 +0200 |
commit | 5c4cf98424de18dd07b4cabfd2f45331f8cbbdab (patch) | |
tree | 345240877ecf304b54a401e610507cb6b3f4ac6c | |
parent | ec68295138b3cd4ee45cb28ef604212c4e9a9f50 (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 <[email protected]>
Reviewed-by: Gunnar Sletta <[email protected]>
-rw-r--r-- | src/declarative/scenegraph/coreapi/qsgrenderer.cpp | 4 |
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(); |