diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-31 06:18:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-31 06:34:06 +0200 |
commit | 19afd85de16169c392b02625c8c2ec2bba9f2ccf (patch) | |
tree | ae5b3d587330117e51f1b8b6e2b2822d2e2cceb3 /draw/anim.cpp | |
parent | 8832eeb71a527e9c2f525a002f3b8e388a343b78 (diff) |
adapt to Magnum GL::Mesh changes
Diffstat (limited to 'draw/anim.cpp')
-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 02421ddb..5f52f680 100644 --- a/draw/anim.cpp +++ b/draw/anim.cpp @@ -78,7 +78,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.setIndexRange((int)(x.mesh_idx*quad_index_count), 0, max_index); + mesh.setIndexOffset((int)(x.mesh_idx*quad_index_count), 0, max_index); shader.draw(atlas.texture(), mesh); i++; } |