aboutsummaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-02-15 00:13:35 +0400
committerGerd Hoffmann <kraxel@redhat.com>2022-03-04 11:28:37 +0100
commita9fbce5e94d6b68ec8404f8a466fde873ba2bc73 (patch)
treecd13613cfc3ffe31d1abcfa110260ace2caa093d /.editorconfig
parent0a2a40da4fba8256bffd9abd94626106f80c3c8c (diff)
downloadqemu-a9fbce5e94d6b68ec8404f8a466fde873ba2bc73.zip
qemu-a9fbce5e94d6b68ec8404f8a466fde873ba2bc73.tar.gz
qemu-a9fbce5e94d6b68ec8404f8a466fde873ba2bc73.tar.bz2
ui/console: fix crash when using gl context with non-gl listeners
The commit 7cc712e98 ("ui: dispatch GL events to all listener") mechanically replaced the dpy_gl calls with a dispatch loop, using the same pre-conditions. However, it didn't take into account that all listeners do not have to implement the GL callbacks. Add the missing pre-conditions before calling the callbacks. Fix crash when running a GL-enabled VM with "-device virtio-gpu-gl-pci -display egl-headless -vnc :0". Fixes: 7cc712e98 ("ui: dispatch GL events to all listener") Reported-by: Akihiko Odaki <akihiko.odaki@gmail.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220214201337.1814787-2-marcandre.lureau@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to '.editorconfig')
0 files changed, 0 insertions, 0 deletions