]> git.proxmox.com Git - mirror_qemu.git/blobdiff - ui/egl-headless.c
ui/console: egl-headless is compatible with non-gl listeners
[mirror_qemu.git] / ui / egl-headless.c
index 9aff115280bcabb1ece8924b51c2f0f9fb57ec63..7a30fd9777654931c55e0b66bbdfa7c98480831d 100644 (file)
@@ -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;
 }