]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ui: spice: Exit if gl=on EGL init fails
authorCole Robinson <crobinso@redhat.com>
Wed, 18 May 2016 16:40:50 +0000 (12:40 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Aug 2016 19:27:59 +0000 (14:27 -0500)
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>
(cherry picked from commit daafc661cc1a1de5a2e8ea0a7c0f396b827ebc3b)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
ui/spice-core.c

index 61db3c18b3249e0d635ee5c1333db9f4c94a3265..da0505434a026efea919c4a25a7b9b772be77f83 100644 (file)
@@ -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
 }