aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorSze Howe Koh <szehowe.koh@gmail.com>2022-12-20 12:44:06 +0800
committerSze Howe Koh <szehowe.koh@gmail.com>2023-01-04 10:04:36 +0800
commitf92a2a679886b09ff03e9d70d1bf1269f421347a (patch)
tree96c52bbca9b403106d2bf6bdcb155224d652dcff /examples/quick
parent0766794e0bc85a6681177cd62fd7047fa85a4643 (diff)
Examples: Update custom QSGMaterialShader correctly
Pick-to: 6.5 6.4 6.2 Change-Id: I469c4f813f006ca47f9660a0c9ccfa30bbe89dc6 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/scenegraph/graph/noisynode.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/graph/noisynode.cpp b/examples/quick/scenegraph/graph/noisynode.cpp
index e62fb2182e..8f5d93dc35 100644
--- a/examples/quick/scenegraph/graph/noisynode.cpp
+++ b/examples/quick/scenegraph/graph/noisynode.cpp
@@ -102,6 +102,7 @@ void NoisyShader::updateSampledImage(RenderState &state, int binding, QSGTexture
Q_UNUSED(binding);
NoisyMaterial *mat = static_cast<NoisyMaterial *>(newMaterial);
+ mat->state.texture->commitTextureOperations(state.rhi(), state.resourceUpdateBatch());
*texture = mat->state.texture;
}