Skip to content

Commit 14447d3

Browse files
committed
fix: remove lower pad bound check
1 parent 51c5171 commit 14447d3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

wgpu/src/image/atlas.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,7 @@ impl Atlas {
353353

354354
// bounds check for pad_w low / high to fragment
355355
if pad_w > 0
356-
&& (offset + stride < PIXEL
357-
|| offset + image_width as usize * PIXEL * h + PIXEL
358-
> pixels.len())
356+
&& offset + image_width as usize * PIXEL * h + PIXEL > pixels.len()
359357
{
360358
return;
361359
}

0 commit comments

Comments
 (0)