diff --git a/wgpu-core/src/command/transfer.rs b/wgpu-core/src/command/transfer.rs index 5b679c40e0..03928b4e5e 100644 --- a/wgpu-core/src/command/transfer.rs +++ b/wgpu-core/src/command/transfer.rs @@ -320,7 +320,7 @@ pub(crate) fn validate_texture_copy_range( // the virtual size. let copy_extent = hal::CopyExtent { width: copy_size.width.min(extent_virtual.width), - height: copy_size.width.min(extent_virtual.height), + height: copy_size.height.min(extent_virtual.height), depth, }; Ok((copy_extent, array_layer_count))