We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be8d67d commit 7bbeb11Copy full SHA for 7bbeb11
1 file changed
pipelined/bevy_render2/src/texture/image.rs
@@ -375,7 +375,11 @@ impl RenderAsset for Image {
375
)
376
.unwrap(),
377
),
378
- rows_per_image: None,
+ rows_per_image: if image.texture_descriptor.size.depth_or_array_layers > 1 {
379
+ std::num::NonZeroU32::new(image.texture_descriptor.size.height)
380
+ } else {
381
+ None
382
+ },
383
},
384
image.texture_descriptor.size,
385
);
0 commit comments