Remove unnecessary cast

This commit is contained in:
grovesNL 2023-01-29 22:14:55 -03:30
parent 288cd89cf8
commit 8aeb9f16bf

View file

@ -309,7 +309,7 @@ impl TextRenderer {
glyph_vertices.extend( glyph_vertices.extend(
iter::repeat(GlyphToRender { iter::repeat(GlyphToRender {
pos: [x as i32, y as i32], pos: [x, y],
dim: [width as u16, height as u16], dim: [width as u16, height as u16],
uv: [atlas_x, atlas_y], uv: [atlas_x, atlas_y],
color: color.0, color: color.0,