summaryrefslogtreecommitdiffstats
path: root/src/qtmultimediaquicktools/qsgvideonode_rgb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qtmultimediaquicktools/qsgvideonode_rgb.cpp')
-rw-r--r--src/qtmultimediaquicktools/qsgvideonode_rgb.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qtmultimediaquicktools/qsgvideonode_rgb.cpp b/src/qtmultimediaquicktools/qsgvideonode_rgb.cpp
index 4b6d61f16..c9f27869c 100644
--- a/src/qtmultimediaquicktools/qsgvideonode_rgb.cpp
+++ b/src/qtmultimediaquicktools/qsgvideonode_rgb.cpp
@@ -91,6 +91,7 @@ public:
m_opacity(1.0)
{
setFlag(Blending, false);
+ m_texture.reset(new QSGVideoTexture);
}
QSGMaterialType *type() const override {
@@ -159,8 +160,6 @@ void QSGVideoMaterialRhiShader_RGB::updateSampledImage(RenderState &state, int b
return;
auto m = static_cast<QSGVideoMaterial_RGB *>(newMaterial);
- if (!m->m_texture)
- m->m_texture.reset(new QSGVideoTexture);
m->m_frameMutex.lock();
auto frame = m->m_frame;