]> git.proxmox.com Git - mirror_qemu.git/commit - ui/gtk-gl-area.c
ui/gtk: Make sure the right EGL context is currently bound
authorDongwon Kim <dongwon.kim@intel.com>
Wed, 28 Jun 2023 19:15:04 +0000 (12:15 -0700)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 17 Jul 2023 11:20:56 +0000 (15:20 +0400)
commit83b4b236ed54dab35f1b821ee2b6f3101c45c8cc
tree52fbb7ff1df6df9ff53ab0c20493c8ce33f6f512
parentd921fea338c1059a27ce7b75309d7a2e485f710b
ui/gtk: Make sure the right EGL context is currently bound

Observed a wrong context is bound when changing the scanout mode.
To prevent problem, it is needed to make sure to bind the right
context in gtk_egl_set_scanout_mode/gtk_gl_area_set_scanout_mode
as well as unbind one in the end of gd_egl_update/gd_gl_area_update.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20230628191504.17185-1-dongwon.kim@intel.com>
ui/gtk-egl.c
ui/gtk-gl-area.c