aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/nodetypes_ng
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-08-01 22:02:06 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-08-02 13:04:54 +0200
commit924beea1617e67faf234d304a0592d71490d41bd (patch)
tree707eebd2683a8ebaf3649476720a5855f7e3b87a /tests/manual/nodetypes_ng
parenta22b44266b402c3b0693e82847b7505cdfcc2ca9 (diff)
Fix 3+ level stencil clips on the rhi path
Change-Id: Id1e0b904ba7273e63fb63ea53c513bde20dc9759 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/manual/nodetypes_ng')
-rw-r--r--tests/manual/nodetypes_ng/MultiClipRects.qml20
1 files changed, 15 insertions, 5 deletions
diff --git a/tests/manual/nodetypes_ng/MultiClipRects.qml b/tests/manual/nodetypes_ng/MultiClipRects.qml
index 793ebeae93..2d3804af21 100644
--- a/tests/manual/nodetypes_ng/MultiClipRects.qml
+++ b/tests/manual/nodetypes_ng/MultiClipRects.qml
@@ -61,8 +61,8 @@ Item {
GradientStop { position: 1; color: "black" }
}
- // Clip using scissor, 2 levels.
- // This means that the lightGreen-yellow-blue batch's clip list will have two clips.
+ // Clip using scissor, up to 2 levels. This means that the
+ // lightGreen-yellow-blue batch's clip list will have two clips.
Row {
spacing: 10
Repeater {
@@ -103,9 +103,9 @@ Item {
}
}
- // Clip using stencil, 2 levels.
- // This means that the lightGreen-yellow batch's clip list will have two clips
- // and so two stencil draw calls before drawing the actual content.
+ // Clip using stencil, up to 3 levels. This means that the
+ // lightGreen-yellow-blue batch's clip list will have three clips and
+ // so two stencil draw calls before drawing the actual content.
Row {
spacing: 10
Repeater {
@@ -133,6 +133,16 @@ Item {
x: 75
y: 75
NumberAnimation on rotation { from: 360; to: 0; duration: 5000; loops: Animation.Infinite; }
+ clip: true
+
+ Rectangle {
+ color: "blue"
+ width: 50
+ height: 50
+ x: 0
+ y: 0
+ NumberAnimation on rotation { from: 360; to: 0; duration: 5000; loops: Animation.Infinite; }
+ }
}
}
}