]> git.proxmox.com Git - mirror_qemu.git/blobdiff - vl.c
egl-headless: use DisplayOptions
[mirror_qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index f52bc3b87973123028e26debd080095767562c9f..38c18ef2e6193d1be062eb5ff243c8e107787cb0 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2178,6 +2178,7 @@ static LegacyDisplayType select_display(const char *p)
         request_opengl = 1;
         display_opengl = 1;
         display = DT_EGL;
+        dpy.type = DISPLAY_TYPE_EGL_HEADLESS;
 #else
         error_report("egl support is disabled");
         exit(1);
@@ -4726,7 +4727,7 @@ int main(int argc, char **argv, char **envp)
 
 #ifdef CONFIG_OPENGL_DMABUF
     if (display_type == DT_EGL) {
-        egl_headless_init();
+        egl_headless_init(&dpy);
     }
 #endif