]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
spice-app: fix running when !CONFIG_OPENGL
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 24 May 2019 13:09:43 +0000 (15:09 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 29 May 2019 04:30:45 +0000 (06:30 +0200)
Do not set 'gl' parameter, fixes:
qemu-system-x86_64: Invalid parameter 'gl'

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20190524130946.31736-7-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-app.c

index 925b27b708bb1071dbb2e4788bee312f024653c1..30541b10224a11aaea7ae3a90a56600f9daf9d52 100644 (file)
@@ -157,9 +157,10 @@ static void spice_app_display_early_init(DisplayOptions *opts)
     qemu_opt_set(qopts, "addr", sock_path, &error_abort);
     qemu_opt_set(qopts, "image-compression", "off", &error_abort);
     qemu_opt_set(qopts, "streaming-video", "off", &error_abort);
+#ifdef CONFIG_OPENGL
     qemu_opt_set(qopts, "gl", opts->has_gl ? "on" : "off", &error_abort);
     display_opengl = opts->has_gl;
-
+#endif
     be->u.spiceport.data->fqdn = g_strdup("org.qemu.monitor.qmp.0");
     qemu_chardev_new("org.qemu.monitor.qmp", TYPE_CHARDEV_SPICEPORT,
                      be, NULL, &error_abort);