diff options
author | Sze Howe Koh <szehowe.koh@gmail.com> | 2022-12-20 12:44:06 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-01-04 13:05:14 +0000 |
commit | 4fc8a9e82e86203c1a710411ab807f041a57e081 (patch) | |
tree | c4701a42884bbd7e8b8735c02893002de0f9d93d | |
parent | 50e3d2a10fd7ada7b3ecaec19758f116beb10cf0 (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>
-rw-r--r-- | examples/quick/scenegraph/graph/noisynode.cpp | 1 |
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; } |