Пример #1
0
 private void OnEglContextLost()
 {
     Logger.Write("EGL context lost");
     DestroyEglContext();
     CreateEglContext();
     if (!EglTryMakeCurrent())
     {
         throw new System.Exception($"Could not make current EGL context, error {GetEglErrorString(egl.EglGetError())}");
     }
     PlatformRenderer.RaiseContextLost();
 }