qt/gloverlay: fix using OpenGL after destroying Qml
authorMatthew Waters <matthew@centricular.com>
Thu, 18 Jun 2020 09:12:46 +0000 (19:12 +1000)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 10 Jul 2020 06:11:48 +0000 (06:11 +0000)
commit88775c2e1824b2586651685047ce7c4cdae68fd2
tree48df883917f0cbba7140d1b4a3eb98827592b781
parente394e6a034446a9488e1b4a1392ae67cf0bb4240
qt/gloverlay: fix using OpenGL after destroying Qml

Qml somewhat unhelpfully seems to uncurrent our OpenGL context on its
destruction.  Work around that by uncurrenting and recurrenting again.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/632>
ext/qt/qtglrenderer.cc