void RecoverFromLostDevice() { StopRenderLoop(); lock (_renderSurfaceLock) { DestroyRenderSurface(); _eglContext.Reset(); CreateRenderSurface(); } StartRenderLoop(); }
void RecoverFromLostDevice() { lock (_renderSurfaceLock) { StopRenderLoop(); DestroyRenderSurface(); _eglContext.Reset(); CreateRenderSurface(); if (_renderSurface != IntPtr.Zero) { StartRenderLoop(); } } }