summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>2023-01-10 01:38:45 +0900
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-01-10 12:12:31 +0000
commitf3c56a1403be1e4b13b36836df8cd1bf19fc965a (patch)
treef7a56273c8c5692825d9983ca98d525e46999365
parent1cbc24928224bfc6c2d6114d22558a5fe4bd1a80 (diff)
downloadqtmultimedia-f3c56a1403be1e4b13b36836df8cd1bf19fc965a.tar.gz
Drop the dirty flag once a video texture is created for a frame
Change-Id: I2ea4f8c21838abf8fcb727d95b9c8c24b0ac6d05 Reviewed-by: Lars Knoll <lars@knoll.priv.no> (cherry picked from commit 15c88c4b6ef08e0112b12b5883e481a2372329c0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/multimediaquick/qsgvideonode_p.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/multimediaquick/qsgvideonode_p.cpp b/src/multimediaquick/qsgvideonode_p.cpp
index ed2b05500..f7c9f085a 100644
--- a/src/multimediaquick/qsgvideonode_p.cpp
+++ b/src/multimediaquick/qsgvideonode_p.cpp
@@ -129,6 +129,7 @@ void QSGVideoMaterial::updateTextures(QRhi *rhi, QRhiResourceUpdateBatch *resour
m_videoFrameTextures = QVideoTextureHelper::createTextures(m_currentFrame, rhi, resourceUpdates, std::move(m_videoFrameTextures));
for (int plane = 0; plane < 3; ++plane)
m_textures[plane]->setRhiTexture(m_videoFrameTextures->texture(plane));
+ m_texturesDirty = false;
}