]> xenbits.xensource.com Git - qemu-xen.git/commit
ui/sdl2: fix surface_gl_update_texture: Assertion 'gls' failed
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 11 May 2023 07:42:17 +0000 (11:42 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 31 May 2023 06:42:37 +0000 (09:42 +0300)
commite0baf24b4aa87f70b6bf08a1d578a31ad94ee0cb
treec3077889f11f981a0d77672f8cd8b8ac555aad4e
parenteef92fac912f5494e4b2c048d02fbd105b471666
ui/sdl2: fix surface_gl_update_texture: Assertion 'gls' failed

Before sdl2_gl_update() is called, sdl2_gl_switch() may decide to
destroy the console window and its associated shaders.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1644
Fixes: c84ab0a500a8 ("ui/console: optionally update after gfx switch")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Bin Meng <bin.meng@windriver.com>
Message-Id: <20230511074217.4171842-1-marcandre.lureau@redhat.com>
(cherry picked from commit b3a654d82ecf276b59a67b2fd688e11a0d8a0064)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
ui/sdl2-gl.c