diff options
author | Andy Nichols <andy.nichols@qt.io> | 2016-08-02 17:20:42 +0200 |
---|---|---|
committer | Andy Nichols <andy.nichols@qt.io> | 2016-08-03 14:45:34 +0000 |
commit | c8978bd582eabf8deb139e2606317b0df0aa7ec2 (patch) | |
tree | 4b025ebd46becdca9fd7f1c8a57939c4cea8fa4d /src/quick/items/qquickclipnode.cpp | |
parent | fa50403ab39a9f4549bf0cc56d07a8717eb177ae (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.cpp | 2 |
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); } |