Skip to content

Commit

Permalink
fix DrawableText crash (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
cart authored Sep 26, 2020
1 parent a3012d9 commit 05db806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_text/src/draw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl<'a> Drawable for DrawableText<'a> {
{
draw.set_index_buffer(quad_index_buffer, 0);
if let Some(buffer_info) = render_resource_context.get_buffer_info(quad_index_buffer) {
indices = 0..(buffer_info.size / 2) as u32;
indices = 0..(buffer_info.size / 4) as u32;
} else {
panic!("expected buffer type");
}
Expand Down

0 comments on commit 05db806

Please sign in to comment.