summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/compute-particles/ParticlesScene.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/compute-particles/ParticlesScene.qml')
-rw-r--r--examples/qt3d/compute-particles/ParticlesScene.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/qt3d/compute-particles/ParticlesScene.qml b/examples/qt3d/compute-particles/ParticlesScene.qml
index 29968d59f..0dd04d0a2 100644
--- a/examples/qt3d/compute-particles/ParticlesScene.qml
+++ b/examples/qt3d/compute-particles/ParticlesScene.qml
@@ -65,10 +65,14 @@ Entity {
signal reset()
components: [
- FrameGraph {
+ RenderSettings {
ComputeFrameGraph {
camera: sceneCamera
}
+ // explicitly set RenderingPolicy to AlwaysRender, as changes in the
+ // scene won't be reflected in actual Qt scene-graph changes (due to
+ // GPU compute calls)
+ renderPolicy: RenderSettings.Always
}
]