diff options
author | emersion <contact@emersion.fr> | 2018-05-23 15:30:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 15:30:11 +0100 |
commit | 0ab37db54359959d9a9f05ed78a51ead5ba98348 (patch) | |
tree | a34e7e54a81c27814c3967fdf7d5f712777308f6 /render | |
parent | 341af97125b4376d7a38f00299539ebb050b235c (diff) | |
parent | 4e89e0fc6c3cb61bf6e9a3aca1af75fc5e4549ed (diff) |
Merge pull request #994 from agreppin/master
fix server error on exit: eglMakeCurrent Invalid display
Diffstat (limited to 'render')
-rw-r--r-- | render/egl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/egl.c b/render/egl.c index a1452e9d..579bb5fe 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); } |