diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-10 11:16:08 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-10 11:16:08 +0200 |
commit | 5162552e90c42afc5c7f8eda642e44debc67abcb (patch) | |
tree | 4fc89e95a41917728cf1077f39cea7511fbcd1f0 | |
parent | 411b53fd96b3e43960fcd1bf4bfeefe4c5e2f164 (diff) |
draw: fix evil typo
-rw-r--r-- | draw/anim.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp index 254661e5..0270ef6d 100644 --- a/draw/anim.cpp +++ b/draw/anim.cpp @@ -79,7 +79,7 @@ void anim_mesh::draw(tile_shader& shader, const Vector2i& win_size, chunk& c, st GL::MeshView mesh{mesh_}; atlas.texture().bind(0); mesh.setCount((int)(quad_index_count * 1)); - mesh.setIndexRange((int)(i*quad_index_count), 0, max_index); + mesh.setIndexRange((int)(x.mesh_idx*quad_index_count), 0, max_index); shader.draw(mesh); i++; } |