summaryrefslogtreecommitdiff
path: root/ui/spice-core.c
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2016-05-18 12:40:50 -0400
committerGerd Hoffmann <kraxel@redhat.com>2016-06-03 08:23:26 +0200
commitdaafc661cc1a1de5a2e8ea0a7c0f396b827ebc3b (patch)
tree75484969d3d0215a63dee09a0366fd74faeeb374 /ui/spice-core.c
parent38a55bddccd4edc393a2e7a30c3f1b79c177b8c4 (diff)
ui: spice: Exit if gl=on EGL init fails
The user explicitly requested spice GL, so if we know it isn't going to work we should exit Signed-off-by: Cole Robinson <crobinso@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: e3789e35b16f9e3cc6f2652f91c52d88ba6d6936.1463588606.git.crobinso@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/spice-core.c')
-rw-r--r--ui/spice-core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/spice-core.c b/ui/spice-core.c
index 61db3c18b3..da0505434a 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -833,9 +833,11 @@ void qemu_spice_init(void)
"incompatible with -spice port/tls-port");
exit(1);
}
- if (egl_rendernode_init() == 0) {
- display_opengl = 1;
+ if (egl_rendernode_init() != 0) {
+ error_report("Failed to initialize EGL render node for SPICE GL");
+ exit(1);
}
+ display_opengl = 1;
}
#endif
}