From 4e89e0fc6c3cb61bf6e9a3aca1af75fc5e4549ed Mon Sep 17 00:00:00 2001 From: agr Date: Wed, 23 May 2018 16:17:29 +0200 Subject: [PATCH] fix server exit: eglMakeCurrent Invalid display --- render/egl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render/egl.c b/render/egl.c index a1452e9d0..579bb5fef 100644 --- a/render/egl.c +++ b/render/egl.c @@ -198,8 +198,8 @@ void wlr_egl_finish(struct wlr_egl *egl) { return; } - eglMakeCurrent(EGL_NO_DISPLAY, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); - if (egl->wl_display && eglUnbindWaylandDisplayWL) { + eglMakeCurrent(egl->display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); + if (egl->wl_display && egl->egl_exts.bind_wayland_display) { eglUnbindWaylandDisplayWL(egl->display, egl->wl_display); }