protected override void Dispose(bool disposing) { if (disposing) { vertexBuffer.Dispose(); basicEffect.Dispose(); device.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (!base.IsDisposed) { if (disposing) { _device.Dispose(); _dummyForm.Dispose(); } base.Dispose(disposing); } }