We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c5171 commit da6f666Copy full SHA for da6f666
1 file changed
wgpu/src/image/atlas.rs
@@ -354,7 +354,11 @@ impl Atlas {
354
// bounds check for pad_w low / high to fragment
355
if pad_w > 0
356
&& (offset + stride < PIXEL
357
- || offset + image_width as usize * PIXEL * h + PIXEL
+ || offset
358
+ + image_width as usize
359
+ * PIXEL
360
+ * (h.checked_sub(1).unwrap_or(0))
361
+ + PIXEL
362
> pixels.len())
363
{
364
return;
0 commit comments