ui/gtk-egl: egl context needs to be unbound in the end of gd_egl_switch
commit604a86895feb6639417fe957dfc95191f7f63565
authorDongwon Kim <dongwon.kim@intel.com>
Wed, 28 Sep 2022 21:58:05 +0000 (28 14:58 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Oct 2022 13:38:08 +0000 (11 15:38 +0200)
tree460d74b391314a608782cd23d08f1f96e617d534
parentd307040b18bfcb1393b910f1bae753d5c12a4dc7
ui/gtk-egl: egl context needs to be unbound in the end of gd_egl_switch

A thread often fails to bind an egl context to itself after guest VM is
rebooted because the context is still owned by another thread. It is not
very clear what condition makes this happen but this can be prevented
by unbinding the context from the thread in the end of gd_egl_switch.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Message-Id: <20220928215805.4661-1-dongwon.kim@intel.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk-egl.c