diff options
author | Matthew Waters <matthew@centricular.com> | 2021-05-11 20:38:52 +1000 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-05-12 02:55:51 +0000 |
commit | 3b4673eba394603636fd034945a22698fb203e64 (patch) | |
tree | b9cc5569ff28a2e18093b5737fdefd655f3b63b5 | |
parent | 13cba418f0288c80bf89426222766336f8c52932 (diff) | |
download | gstreamer-plugins-good-3b4673eba394603636fd034945a22698fb203e64.tar.gz |
qml: also use the dummy texture when no buffer has been set
Fixes corrupted texture output when changing OpenGL display/contexts.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/983>
-rw-r--r-- | ext/qt/gstqsgtexture.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/qt/gstqsgtexture.cc b/ext/qt/gstqsgtexture.cc index 00e2ddad0..5b7d8b7f0 100644 --- a/ext/qt/gstqsgtexture.cc +++ b/ext/qt/gstqsgtexture.cc @@ -114,7 +114,7 @@ GstQSGTexture::bind () gboolean use_dummy_tex = TRUE; if (!this->qt_context_) - return; + goto out; if (!this->buffer_) goto out; @@ -190,6 +190,7 @@ out: g_assert (this->dummy_tex_id_ != 0); funcs->glBindTexture (GL_TEXTURE_2D, this->dummy_tex_id_); + GST_LOG ("%p binding fallback dummy Qt texture %u", this, this->dummy_tex_id_); } } |