From 783c85e2646ab685c103fee106757258e713cc7b Mon Sep 17 00:00:00 2001 From: Boris-Chengbiao Zhou Date: Wed, 14 Jul 2021 19:52:44 +0200 Subject: [PATCH] hal: Fix copy-paste error in texture copy dimensions --- wgpu-core/src/command/transfer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))