render / rpms / qemu

Forked from rpms/qemu 10 months ago
Clone

Blame 0004-ui-spice-Exit-if-gl-on-EGL-init-fails.patch

f8dc43
From: Cole Robinson <crobinso@redhat.com>
f8dc43
Date: Wed, 18 May 2016 11:44:33 -0400
f8dc43
Subject: [PATCH] ui: spice: Exit if gl=on EGL init fails
f8dc43
f8dc43
The user explicitly requested spice GL, so if we know it isn't
f8dc43
going to work we should exit
f8dc43
f8dc43
Signed-off-by: Cole Robinson <crobinso@redhat.com>
f8dc43
---
f8dc43
 ui/spice-core.c | 6 ++++--
f8dc43
 1 file changed, 4 insertions(+), 2 deletions(-)
f8dc43
f8dc43
diff --git a/ui/spice-core.c b/ui/spice-core.c
f8dc43
index 61db3c1..da05054 100644
f8dc43
--- a/ui/spice-core.c
f8dc43
+++ b/ui/spice-core.c
f8dc43
@@ -833,9 +833,11 @@ void qemu_spice_init(void)
f8dc43
                          "incompatible with -spice port/tls-port");
f8dc43
             exit(1);
f8dc43
         }
f8dc43
-        if (egl_rendernode_init() == 0) {
f8dc43
-            display_opengl = 1;
f8dc43
+        if (egl_rendernode_init() != 0) {
f8dc43
+            error_report("Failed to initialize EGL render node for SPICE GL");
f8dc43
+            exit(1);
f8dc43
         }
f8dc43
+        display_opengl = 1;
f8dc43
     }
f8dc43
 #endif
f8dc43
 }