mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +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(),
|
.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,
|
image.texture_descriptor.size,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue