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>
(cherry picked from commit daafc661cc
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
84da2c6701
commit
c5ba71b6b9
|
@ -833,9 +833,11 @@ void qemu_spice_init(void)
|
||||||
"incompatible with -spice port/tls-port");
|
"incompatible with -spice port/tls-port");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (egl_rendernode_init() == 0) {
|
if (egl_rendernode_init() != 0) {
|
||||||
display_opengl = 1;
|
error_report("Failed to initialize EGL render node for SPICE GL");
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
|
display_opengl = 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue