diff --git a/Dalamud/Interface/Internal/TextureManager.cs b/Dalamud/Interface/Internal/TextureManager.cs index 7789e9e76..462a5ec76 100644 --- a/Dalamud/Interface/Internal/TextureManager.cs +++ b/Dalamud/Interface/Internal/TextureManager.cs @@ -265,8 +265,7 @@ internal sealed class TextureManager : IServiceType, IDisposable, ITextureProvid /// public IDalamudTextureWrap GetFromRaw( RawImageSpecification specs, - ReadOnlySpan bytes, - CancellationToken cancellationToken = default) => + ReadOnlySpan bytes) => this.interfaceManager.LoadImageFromDxgiFormat( bytes, specs.Pitch, @@ -281,7 +280,7 @@ internal sealed class TextureManager : IServiceType, IDisposable, ITextureProvid CancellationToken cancellationToken = default) => this.textureLoadThrottler.CreateLoader( new TextureLoadThrottler.ReadOnlyThrottleBasisProvider(), - ct => Task.FromResult(this.GetFromRaw(specs, bytes.Span, ct)), + ct => Task.FromResult(this.GetFromRaw(specs, bytes.Span)), cancellationToken); /// diff --git a/Dalamud/Plugin/Services/ITextureProvider.cs b/Dalamud/Plugin/Services/ITextureProvider.cs index c314d7392..b6c7e2cbd 100644 --- a/Dalamud/Plugin/Services/ITextureProvider.cs +++ b/Dalamud/Plugin/Services/ITextureProvider.cs @@ -152,12 +152,10 @@ public partial interface ITextureProvider /// Gets a texture from the given bytes, interpreting it as a raw bitmap. /// The specifications for the raw bitmap. /// The bytes to load. - /// The cancellation token. /// The texture loaded from the supplied raw bitmap. Dispose after use. IDalamudTextureWrap GetFromRaw( RawImageSpecification specs, - ReadOnlySpan bytes, - CancellationToken cancellationToken = default); + ReadOnlySpan bytes); /// Gets a texture from the given bytes, interpreting it as a raw bitmap. /// The specifications for the raw bitmap.