summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}