aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgrhishadereffectnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/qsgrhishadereffectnode.cpp')
-rw-r--r--src/quick/scenegraph/qsgrhishadereffectnode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgrhishadereffectnode.cpp b/src/quick/scenegraph/qsgrhishadereffectnode.cpp
index 8eb4aedceb..9868a7b0f4 100644
--- a/src/quick/scenegraph/qsgrhishadereffectnode.cpp
+++ b/src/quick/scenegraph/qsgrhishadereffectnode.cpp
@@ -407,8 +407,10 @@ void QSGRhiShaderEffectMaterialShader::updateSampledImage(RenderState &state, in
// only safe way then is to use the same batch the atlas'
// updateRhiTexture() used.
QSGTexture *newTexture = t->removedFromAtlas(state.resourceUpdateBatch());
- if (newTexture)
+ if (newTexture) {
t = newTexture;
+ t->commitTextureOperations(state.rhi(), state.resourceUpdateBatch());
+ }
}
*texture = t;
return;