aboutsummaryrefslogtreecommitdiff
path: root/backend/egl.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/egl.c')
-rw-r--r--backend/egl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/egl.c b/backend/egl.c
index 2ac1e77c..a547523c 100644
--- a/backend/egl.c
+++ b/backend/egl.c
@@ -162,6 +162,7 @@ error:
}
void wlr_egl_free(struct wlr_egl *egl) {
+ eglMakeCurrent(egl->display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
eglDestroyContext(egl->display, egl->context);
eglTerminate(egl->display);
eglReleaseThread();