예제 #1
0
        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;
            }
        }
예제 #2
0
 public override void Stop()
 {
     EGL.Terminate(GlDisplay);
     GLES2Config.GlCheckError(this);
 }