[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/7] ui: spice: Exit if gl=on EGL init fails
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 2/7] ui: spice: Exit if gl=on EGL init fails |
Date: |
Fri, 3 Jun 2016 09:04:23 +0200 |
From: Cole Robinson <address@hidden>
The user explicitly requested spice GL, so if we know it isn't
going to work we should exit
Signed-off-by: Cole Robinson <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/spice-core.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ui/spice-core.c b/ui/spice-core.c
index 61db3c1..da05054 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
}
--
1.8.3.1
- [Qemu-devel] [PULL 0/7] ui patch queue, Gerd Hoffmann, 2016/06/03
- [Qemu-devel] [PULL 3/7] gtk: fix unchecked vc dereference, Gerd Hoffmann, 2016/06/03
- [Qemu-devel] [PULL 5/7] vnc: Add support for color map, Gerd Hoffmann, 2016/06/03
- [Qemu-devel] [PULL 4/7] SDL2: add bgrx pixel format, Gerd Hoffmann, 2016/06/03
- [Qemu-devel] [PULL 6/7] sdl2: skip init without outputs, Gerd Hoffmann, 2016/06/03
- [Qemu-devel] [PULL 1/7] ui: egl: Replace fprintf with error_report, Gerd Hoffmann, 2016/06/03
- [Qemu-devel] [PULL 7/7] vnc: add configurable keyboard delay, Gerd Hoffmann, 2016/06/03
- [Qemu-devel] [PULL 2/7] ui: spice: Exit if gl=on EGL init fails,
Gerd Hoffmann <=
- Re: [Qemu-devel] [PULL 0/7] ui patch queue, Peter Maydell, 2016/06/03