summaryrefslogtreecommitdiffstats
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
commita453e59c2afe42f094511ab1ce8b7c78f23c9c7a (patch)
tree0d9e9b2089000f2900ab933d912854285e201c07
parentfae8094fdafc2e19ef4da8ed200379a634411ece (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;