aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Genkhel <roman.genhel@lge.com>2021-02-17 15:20:02 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-03-23 00:50:33 +0000
commit3162c140f3ace8f070c95165affa7a324512614f (patch)
tree13b7bf215b23387118f3a414c71cf7741c8e178c
parent917e766ede07c3ec709394c4dc50e77ae0f8e16a (diff)
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 <jaeyoon.jung@lge.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit a7b32a3e893892fc96d58af110af568043f09e72) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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;