mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
Fixed issue with how texture arrays were uploaded with write_texture. (#24)
This commit is contained in:
parent
be8d67d0b0
commit
7bbeb11ed7
1 changed files with 5 additions and 1 deletions
|
@ -375,7 +375,11 @@ impl RenderAsset for Image {
|
|||
)
|
||||
.unwrap(),
|
||||
),
|
||||
rows_per_image: None,
|
||||
rows_per_image: if image.texture_descriptor.size.depth_or_array_layers > 1 {
|
||||
std::num::NonZeroU32::new(image.texture_descriptor.size.height)
|
||||
} else {
|
||||
None
|
||||
},
|
||||
},
|
||||
image.texture_descriptor.size,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue