From 0e1be59ed9b3b50aa7e66669e94aabdf0c3d80d2 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 14 Feb 2023 16:11:24 +0400 Subject: ui: introduce egl_init() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Daniel P. Berrangé --- ui/dbus.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ui/dbus.c') diff --git a/ui/dbus.c b/ui/dbus.c index f529928f0b..ebf03bd84d 100644 --- a/ui/dbus.c +++ b/ui/dbus.c @@ -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); -- cgit 1.4.1