mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
ui: introduce egl_init()
Future patches will introduce EGL support on win32 (too late for 8.0 though). Having a common place for EGL initialization and error handling will make it simpler. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
da3f7a3ab9
commit
0e1be59ed9
5 changed files with 36 additions and 20 deletions
|
@ -451,12 +451,7 @@ early_dbus_init(DisplayOptions *opts)
|
|||
DisplayGLMode mode = opts->has_gl ? opts->gl : DISPLAYGL_MODE_OFF;
|
||||
|
||||
if (mode != DISPLAYGL_MODE_OFF) {
|
||||
if (egl_rendernode_init(opts->u.dbus.rendernode, mode) < 0) {
|
||||
error_report("dbus: render node init failed");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
display_opengl = 1;
|
||||
egl_init(opts->u.dbus.rendernode, mode, &error_fatal);
|
||||
}
|
||||
|
||||
type_register(&dbus_vc_type_info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue