public override void Exit() { if (_window != null) { _window.Dispose(); } _window = null; Window = null; }
protected override void Dispose(bool disposing) { if (disposing) { if (_window != null) { _window.Dispose(); _window = null; Window = null; } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { if (_window != null) { _window.Dispose(); _window = null; Window = null; Microsoft.Xna.Framework.Media.MediaManagerState.CheckShutdown(); } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { if (_window != null) { _window.Dispose(); _window = null; Window = null; } // Make sure we dispose the graphics system. var graphicsDeviceManager = Game.graphicsDeviceManager; if (graphicsDeviceManager != null) { graphicsDeviceManager.Dispose(); } } base.Dispose(disposing); }
public override void Exit() { _window.Dispose(); _window = null; Window = null; }