mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-04 20:55:58 +01:00
egl: Remove dead code
Display is always NULL here since egl_init is always last to be called.
This commit is contained in:
parent
9b8cd1f5d6
commit
91a1797a96
1 changed files with 0 additions and 5 deletions
|
@ -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…
Reference in a new issue