Skip to content

Commit 40378ae

Browse files
committed
Remove extra comment
1 parent a780298 commit 40378ae

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

BCnEnc.Net/Shared/MipMapper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ private static Memory2D<ColorRgba32> ResizeToHalf(ReadOnlySpan2D<ColorRgba32> pi
171171
var newWidth = Math.Max(1, oldWidth >> 1);
172172
var newHeight = Math.Max(1, oldHeight >> 1);
173173

174-
// Use a 1D backing array so TryGetMemory() succeeds on all target frameworks
175174
var result = new ColorRgba32[newHeight * newWidth];
176175

177176
int ClampW(int x) => Math.Max(0, Math.Min(oldWidth - 1, x));
@@ -200,7 +199,6 @@ private static Memory2D<ColorRgbFloat> ResizeToHalf(ReadOnlySpan2D<ColorRgbFloat
200199
var newWidth = Math.Max(1, oldWidth >> 1);
201200
var newHeight = Math.Max(1, oldHeight >> 1);
202201

203-
// Use a 1D backing array so TryGetMemory() succeeds on all target frameworks
204202
var result = new ColorRgbFloat[newHeight * newWidth];
205203

206204
int ClampW(int x) => Math.Max(0, Math.Min(oldWidth - 1, x));

0 commit comments

Comments
 (0)