aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickclipnode.cpp
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@qt.io>2016-08-02 17:20:42 +0200
committerAndy Nichols <andy.nichols@qt.io>2016-08-03 14:45:34 +0000
commitc8978bd582eabf8deb139e2606317b0df0aa7ec2 (patch)
tree4b025ebd46becdca9fd7f1c8a57939c4cea8fa4d /src/quick/items/qquickclipnode.cpp
parentfa50403ab39a9f4549bf0cc56d07a8717eb177ae (diff)
QQuickDefaultClipNode: Set clipRect before marking geometry dirty
The ordering here is important because the software adaptation uses the QSGClipNode's clipRect property instead of the geometry to update the clipRect, and with the previous code the clip node would not be correct for the next frame. Change-Id: I43147aaabd65f22820f01afb326975bb62ea95cc Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quick/items/qquickclipnode.cpp')
-rw-r--r--src/quick/items/qquickclipnode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickclipnode.cpp b/src/quick/items/qquickclipnode.cpp
index 1114686a9a..7c7fee4a42 100644
--- a/src/quick/items/qquickclipnode.cpp
+++ b/src/quick/items/qquickclipnode.cpp
@@ -113,7 +113,7 @@ void QQuickDefaultClipNode::updateGeometry()
}
}
- markDirty(DirtyGeometry);
setClipRect(m_rect);
+ markDirty(DirtyGeometry);
}