Terminate display connection

master
Graham 3 years ago
parent 8bd35b7772
commit 92caf4f4bd
  1. 1
      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; jaggl_surface = EGL_NO_SURFACE;
} }
eglTerminate(jaggl_display);
jaggl_display = EGL_NO_DISPLAY; jaggl_display = EGL_NO_DISPLAY;
#elif defined(JAGGL_GLX) #elif defined(JAGGL_GLX)
GLXContext current = glXGetCurrentContext(); GLXContext current = glXGetCurrentContext();

Loading…
Cancel
Save