aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-05-24 15:09:43 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-05-29 06:30:45 +0200
commitcb0efb7125fade8faa9a1fed4d46e63d35b31863 (patch)
tree3b5cdbda61ae9d09051c0da3529c39ca0907e9f8 /ui
parentd52c454aadcdae74506f315ebf8b58bb79a05573 (diff)
downloadqemu-cb0efb7125fade8faa9a1fed4d46e63d35b31863.zip
qemu-cb0efb7125fade8faa9a1fed4d46e63d35b31863.tar.gz
qemu-cb0efb7125fade8faa9a1fed4d46e63d35b31863.tar.bz2
spice-app: fix running when !CONFIG_OPENGL
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>
Diffstat (limited to 'ui')
-rw-r--r--ui/spice-app.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/spice-app.c b/ui/spice-app.c
index 925b27b..30541b1 100644
--- a/ui/spice-app.c
+++ b/ui/spice-app.c
@@ -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);