Пример #1
0
        void RecoverFromLostDevice()
        {
            StopRenderLoop();

            lock (_renderSurfaceLock) {
                DestroyRenderSurface();
                _eglContext.Reset();
                CreateRenderSurface();
            }

            StartRenderLoop();
        }
Пример #2
0
        void RecoverFromLostDevice()
        {
            lock (_renderSurfaceLock) {
                StopRenderLoop();

                DestroyRenderSurface();
                _eglContext.Reset();
                CreateRenderSurface();

                if (_renderSurface != IntPtr.Zero)
                {
                    StartRenderLoop();
                }
            }
        }