egl: Remove dead code

Display is always NULL here since egl_init is always last to be called.
master
Alexander Orzechowski 1 year ago committed by Simon Ser
parent 9b8cd1f5d6
commit 91a1797a96

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

Loading…
Cancel
Save