egl: Remove dead code

Display is always NULL here since egl_init is always last to be called.
This commit is contained in:
Alexander Orzechowski 2023-08-21 11:41:24 -04:00 committed by Simon Ser
parent 9b8cd1f5d6
commit 91a1797a96

View file

@ -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;