Fix length check
This commit is contained in:
parent
788543ae97
commit
8dd8d223dd
1 changed files with 1 additions and 1 deletions
|
@ -1048,7 +1048,7 @@ fn copy_buffers_to_image<'a, T: ReprC + Send + Sync + 'static>(
|
|||
where
|
||||
T: Copy,
|
||||
{
|
||||
debug_assert!(buffers.len() < image.layers as usize);
|
||||
debug_assert!(buffers.len() == image.layers as usize);
|
||||
|
||||
// create a new command buffer
|
||||
let command_buffer = CommandBuffer::new_primary().build(device.clone(), queue.clone())?;
|
||||
|
|
Loading…
Reference in a new issue