aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-08-21 11:41:24 -0400
committerSimon Ser <contact@emersion.fr>2023-08-21 15:51:26 +0000
commit91a1797a96400febb384aaa7feb1a8369ee5b571 (patch)
tree2d603dbe1658e3d7ba780ea26313c758b4c4f6bb
parent9b8cd1f5d6c1158b13108f271fc8d6891105e6e4 (diff)
egl: Remove dead code
Display is always NULL here since egl_init is always last to be called.
-rw-r--r--render/egl.c5
1 files changed, 0 insertions, 5 deletions
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;