diff options
-rw-r--r-- | elements/gstqtvideosink/painters/videomaterial.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elements/gstqtvideosink/painters/videomaterial.cpp b/elements/gstqtvideosink/painters/videomaterial.cpp index 385891f..7711415 100644 --- a/elements/gstqtvideosink/painters/videomaterial.cpp +++ b/elements/gstqtvideosink/painters/videomaterial.cpp @@ -104,7 +104,7 @@ public: Q_UNUSED(oldMaterial); VideoMaterial *material = static_cast<VideoMaterial *>(newMaterial); - if (m_id_rgbTexture) { + if (m_id_rgbTexture > 0) { program()->setUniformValue(m_id_rgbTexture, 0); } else { program()->setUniformValue(m_id_yTexture, 0); |