diff options
author | 2023-04-20 21:28:47 -0400 | |
---|---|---|
committer | 2023-04-20 21:28:47 -0400 | |
commit | 8122904ca46b73ceda54bd73bd68cf4138d22f1b (patch) | |
tree | 20756b590307a74e0c352ccbd50df3c134c63c3f /wgpu/src/image | |
parent | 99fc717b7c268abe49b1000d9f111b12562aafcf (diff) | |
download | iced-8122904ca46b73ceda54bd73bd68cf4138d22f1b.tar.gz iced-8122904ca46b73ceda54bd73bd68cf4138d22f1b.tar.bz2 iced-8122904ca46b73ceda54bd73bd68cf4138d22f1b.zip |
wgpu 0.16
Diffstat (limited to 'wgpu/src/image')
-rw-r--r-- | wgpu/src/image/atlas.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/image/atlas.rs b/wgpu/src/image/atlas.rs index 82504147..1384949a 100644 --- a/wgpu/src/image/atlas.rs +++ b/wgpu/src/image/atlas.rs @@ -209,8 +209,8 @@ impl Atlas { buffer, layout: wgpu::ImageDataLayout { offset: offset as u64, - bytes_per_row: NonZeroU32::new(4 * image_width + padding), - rows_per_image: NonZeroU32::new(image_height), + bytes_per_row: Some(4 * image_width + padding), + rows_per_image: Some(image_height), }, }, wgpu::ImageCopyTexture { |