Releasing EGL Resources#
To release the resources in the context, first the context has to be released from its binding with the current thread.
eglMakeCurrent(_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
Terminate the display, and any resources associated with it, including the EGLContext.
eglTerminate(_eglDisplay);