From 92caf4f4bd40283fe58c375f23e60215b396edad Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 26 Sep 2021 20:51:51 +0100 Subject: [PATCH] Terminate display connection --- gl-natives/src/main/c/jaggl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gl-natives/src/main/c/jaggl.c b/gl-natives/src/main/c/jaggl.c index 2040f84..8eb14da 100644 --- a/gl-natives/src/main/c/jaggl.c +++ b/gl-natives/src/main/c/jaggl.c @@ -730,6 +730,7 @@ JNIEXPORT jboolean JNICALL Java_jaggl_context_destroy(JNIEnv *env, jclass cls) { jaggl_surface = EGL_NO_SURFACE; } + eglTerminate(jaggl_display); jaggl_display = EGL_NO_DISPLAY; #elif defined(JAGGL_GLX) GLXContext current = glXGetCurrentContext();