Skip to content

Commit

Permalink
Fix draw_inline drawing to many vertices (amethyst#1602)
Browse files Browse the repository at this point in the history
DrawFlat2DTransparent should draw 4 vertices for a triangle strip not 6
The non-transparent version is correct.
  • Loading branch information
valkum authored and jaynus committed May 16, 2019
1 parent 6cdf07b commit 1eb84e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amethyst_rendy/src/pass/flat2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ impl<B: Backend> RenderGroup<B, Resources> for DrawFlat2DTransparent<B> {
for (&tex, range) in self.sprites.iter() {
if self.textures.loaded(tex) {
self.textures.bind(layout, 1, tex, &mut encoder);
encoder.draw(0..6, range);
encoder.draw(0..4, range);
}
}
}
Expand Down

0 comments on commit 1eb84e1

Please sign in to comment.