mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Merge #1657
1657: hal: Fix copy-paste error in texture copy dimensions r=cwfitzgerald a=Bobo1239 **Testing** My textures aren't cut off past the square anymore ^^   Co-authored-by: Boris-Chengbiao Zhou <bobo1239@web.de>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user