public override void Dispose() { disposeChilderen(); if (texture != null) { texture.Dispose(); texture = null; } base.Dispose(); }
protected override void Dispose(bool disposing) { if (disposing) { if (_texture2D != null) { _texture2D.Dispose(); } } base.Dispose(disposing); }