private void Cleanup() { if (eglDisplay != EGL.EGL_NO_DISPLAY && eglContext != EGL.EGL_NO_CONTEXT) { EGL.DestroyContext(eglDisplay, eglContext); eglContext = EGL.EGL_NO_CONTEXT; } if (eglDisplay != EGL.EGL_NO_DISPLAY) { EGL.Terminate(eglDisplay); eglDisplay = EGL.EGL_NO_DISPLAY; } }
public override void Stop() { EGL.Terminate(GlDisplay); GLES2Config.GlCheckError(this); }