diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-02-14 16:11:24 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-13 23:48:45 +0400 |
commit | 0e1be59ed9b3b50aa7e66669e94aabdf0c3d80d2 (patch) | |
tree | d06d249e05ae7315fdb4bc1935bcfcd4d8d3ab91 /ui/dbus.c | |
parent | da3f7a3ab9ea0091955b58f8909dfcee01f4043e (diff) |
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>
Diffstat (limited to 'ui/dbus.c')
-rw-r--r-- | ui/dbus.c | 7 |
1 files changed, 1 insertions, 6 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); |