diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-02-16 19:42:40 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-03-14 15:16:05 +0400 |
commit | cd19c25fbfaeee8865a2f8dcb532d758615bc8c9 (patch) | |
tree | 868f3be45f393dafd971654da3af1569ed551fe9 /ui/egl-headless.c | |
parent | a62c4a178fb154a3b810870502cb4c63a6b4cf28 (diff) | |
download | qemu-cd19c25fbfaeee8865a2f8dcb532d758615bc8c9.zip qemu-cd19c25fbfaeee8865a2f8dcb532d758615bc8c9.tar.gz qemu-cd19c25fbfaeee8865a2f8dcb532d758615bc8c9.tar.bz2 |
ui/console: egl-headless is compatible with non-gl listeners
Fix a regression introduced by commit 5e79d516e ("ui: split the GL
context in a different object").
Reported-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/egl-headless.c')
-rw-r--r-- | ui/egl-headless.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/egl-headless.c b/ui/egl-headless.c index 9aff115..7a30fd97 100644 --- a/ui/egl-headless.c +++ b/ui/egl-headless.c @@ -170,6 +170,14 @@ static bool egl_is_compatible_dcl(DisplayGLCtx *dgc, DisplayChangeListener *dcl) { + if (!dcl->ops->dpy_gl_update) { + /* + * egl-headless is compatible with all 2d listeners, as it blits the GL + * updates on the 2d console surface. + */ + return true; + } + return dcl->ops == &egl_ops; } |