From 91a1797a96400febb384aaa7feb1a8369ee5b571 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 21 Aug 2023 11:41:24 -0400 Subject: egl: Remove dead code Display is always NULL here since egl_init is always last to be called. --- render/egl.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'render') diff --git a/render/egl.c b/render/egl.c index e21755b6..8986117d 100644 --- a/render/egl.c +++ b/render/egl.c @@ -568,11 +568,6 @@ struct wlr_egl *wlr_egl_create_with_drm_fd(int drm_fd) { error: wlr_log(WLR_ERROR, "Failed to initialize EGL context"); - if (egl->display) { - eglMakeCurrent(egl->display, EGL_NO_SURFACE, EGL_NO_SURFACE, - EGL_NO_CONTEXT); - eglTerminate(egl->display); - } free(egl); eglReleaseThread(); return NULL; -- cgit v1.2.3