aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/graph/noisynode.cpp
diff options
context:
space:
mode:
authorSze Howe Koh <szehowe.koh@gmail.com>2022-12-20 12:44:06 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-01-04 05:20:50 +0000
commit047e3c99c4b42e34c258147aab39adb844a85a20 (patch)
treed15d9d182a6801a416f5c6d103a1ad1d898c1c74 /examples/quick/scenegraph/graph/noisynode.cpp
parent7fab0c0feeb3360b14c984f16061b69495179fc6 (diff)
Examples: Update custom QSGMaterialShader correctly
Change-Id: I469c4f813f006ca47f9660a0c9ccfa30bbe89dc6 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit f92a2a679886b09ff03e9d70d1bf1269f421347a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/quick/scenegraph/graph/noisynode.cpp')
-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 f8b72bfe67..b9a9b6b1ae 100644
--- a/examples/quick/scenegraph/graph/noisynode.cpp
+++ b/examples/quick/scenegraph/graph/noisynode.cpp
@@ -151,6 +151,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;
}