Skip to content

Commit a780298

Browse files
committed
Fix bug with decoder not decoding all mipmaps on some methods
1 parent 601ce04 commit a780298

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

BCnEnc.Net/Decoder/BcDecoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public Task<Memory2D<ColorRgba32>> Decode2DAsync(Stream inputStream, Cancellatio
166166
/// <returns>The awaitable operation to retrieve the decoded image.</returns>
167167
public Task<Memory2D<ColorRgba32>[]> DecodeAllMipMaps2DAsync(Stream inputStream, CancellationToken token = default)
168168
{
169-
return Task.Run(() => DecodeFromStreamInternal2D(inputStream, false, token), token);
169+
return Task.Run(() => DecodeFromStreamInternal2D(inputStream, true, token), token);
170170
}
171171

172172
/// <summary>
@@ -675,7 +675,7 @@ public Task<Memory2D<ColorRgbFloat>> DecodeHdr2DAsync(Stream inputStream, Cancel
675675
/// <returns>The awaitable operation to retrieve the decoded image.</returns>
676676
public Task<Memory2D<ColorRgbFloat>[]> DecodeAllMipMapsHdr2DAsync(Stream inputStream, CancellationToken token = default)
677677
{
678-
return Task.Run(() => DecodeFromStreamInternalHdr2D(inputStream, false, token), token);
678+
return Task.Run(() => DecodeFromStreamInternalHdr2D(inputStream, true, token), token);
679679
}
680680

681681
/// <summary>

0 commit comments

Comments
 (0)