From a453e59c2afe42f094511ab1ce8b7c78f23c9c7a Mon Sep 17 00:00:00 2001 From: Roman Genkhel Date: Wed, 17 Feb 2021 15:20:02 +0300 Subject: Call commitTextureOperations for small atlas textures Atlas textures with size not greater than QSG_ATLAS_TRANSIENT_IMAGE_THRESHOLD are not visible Fixes: QTBUG-91182 Change-Id: I4e72e1c32c15b9e1a21cdb07262f219cc641bb5f Reviewed-by: Jaeyoon Jung Reviewed-by: Laszlo Agocs (cherry picked from commit a7b32a3e893892fc96d58af110af568043f09e72) Reviewed-by: Qt Cherry-pick Bot --- src/quick/scenegraph/qsgrhishadereffectnode.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3