protected virtual void Dispose(bool disposing) { if (!disposed) { handle.Dispose(); renderer?.Dispose(); textureSet?.Dispose(); disposed = true; } }
protected override void Dispose(DisposeTypes type) { if (disposed) { return; } image?.Dispose(); renderer?.Dispose(); textureSet?.Dispose(); base.Dispose(); }