fix the size checks in transfer buffer to image commands
@@ -443,7 +443,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
});
}
- if copy_size.width == 0 || copy_size.height == 0 || copy_size.width == 0 {
+ if copy_size.width == 0 || copy_size.height == 0 || copy_size.depth == 0 {
tracing::trace!("Ignoring copy_buffer_to_texture of size 0");
return Ok(());
}
@@ -583,7 +583,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
});
}
- if copy_size.width == 0 || copy_size.height == 0 || copy_size.width == 0 {
+ if copy_size.width == 0 || copy_size.height == 0 || copy_size.depth == 0 {
tracing::trace!("Ignoring copy_texture_to_buffer of size 0");
return Ok(());
}
@@ -733,7 +733,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
});
}
- if copy_size.width == 0 || copy_size.height == 0 || copy_size.width == 0 {
+ if copy_size.width == 0 || copy_size.height == 0 || copy_size.depth == 0 {
tracing::trace!("Ignoring copy_texture_to_texture of size 0");
return Ok(());
}
