protected override void OnContextLost(EventArgs e)
{
base.OnContextLost(e);
// OnContextLost is called when the underlying OpenGL context is destroyed
// this usually happens on older devices when other opengl apps are run
// or the lock screen is enabled. Modern devices can preserve the opengl
// context along with all the textures and shaders it has attached.
Android.Util.Log.Debug("MonoGame", "MonoGameAndroidGameView Context Lost");
// DeviceResetting events
_game.graphicsDeviceManager.OnDeviceResetting(EventArgs.Empty);
if (_game.GraphicsDevice != null)
_game.GraphicsDevice.OnDeviceResetting();
_lostContext = true;
}