Fixed issue where quads of different types were not ordered.

This commit is contained in:
Bingus 2023-05-25 10:27:27 -07:00
parent 75110b9c0e
commit 3f141459a6
No known key found for this signature in database
GPG key ID: 5F84D2AA40A9F170
4 changed files with 87 additions and 13 deletions

View file

@ -265,8 +265,12 @@ impl Backend {
}
if !layer.quads.is_empty() {
self.quad_pipeline
.render(quad_layer, bounds, &mut render_pass);
self.quad_pipeline.render(
quad_layer,
bounds,
&layer.quads.order,
&mut render_pass,
);
quad_layer += 1;
}