diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-08-21 11:41:24 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-08-21 15:51:26 +0000 |
commit | 91a1797a96400febb384aaa7feb1a8369ee5b571 (patch) | |
tree | 2d603dbe1658e3d7ba780ea26313c758b4c4f6bb /render | |
parent | 9b8cd1f5d6c1158b13108f271fc8d6891105e6e4 (diff) |
egl: Remove dead code
Display is always NULL here since egl_init is always last to be called.
Diffstat (limited to 'render')
-rw-r--r-- | render/egl.c | 5 |
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; |