ui/sdl2: fix surface_gl_update_texture: Assertion 'gls' failed
commitb3a654d82ecf276b59a67b2fd688e11a0d8a0064
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 11 May 2023 07:42:17 +0000 (11 11:42 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 28 May 2023 09:08:25 +0000 (28 13:08 +0400)
tree12c7287226176e815ac2b79a8f47f2b33f4bea29
parentf8a951bb951140a585341c700ebeec58d83f7bbc
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>
ui/sdl2-gl.c