summaryrefslogtreecommitdiffhomepage
path: root/draw
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-14 10:29:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-14 10:30:16 +0200
commite900975255452b70f7474b78050b9c6342912cfe (patch)
treee92e92f804a9cc1c363dad61408e8880741ee961 /draw
parentc077f0f904cce505e15543b855b4330ca547b53d (diff)
remove some useless casts
Diffstat (limited to 'draw')
-rw-r--r--draw/anim.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp
index e83bf5e5..12d5d0c4 100644
--- a/draw/anim.cpp
+++ b/draw/anim.cpp
@@ -77,7 +77,7 @@ void anim_mesh::draw(tile_shader& shader, const Vector2i& win_size, chunk& c, st
{
fm_assert(i < size);
GL::MeshView mesh{mesh_};
- mesh.setCount((int)(quad_index_count * 1));
+ mesh.setCount(quad_index_count * 1);
mesh.setIndexOffset((int)(x.mesh_idx*quad_index_count), 0, max_index);
shader.draw(atlas.texture(), mesh);
i++;