summaryrefslogtreecommitdiffhomepage
path: root/draw/wall.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-08-31 06:18:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-08-31 06:34:06 +0200
commit19afd85de16169c392b02625c8c2ec2bba9f2ccf (patch)
treeae5b3d587330117e51f1b8b6e2b2822d2e2cceb3 /draw/wall.cpp
parent8832eeb71a527e9c2f525a002f3b8e388a343b78 (diff)
adapt to Magnum GL::Mesh changes
Diffstat (limited to 'draw/wall.cpp')
-rw-r--r--draw/wall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/wall.cpp b/draw/wall.cpp
index f6f06c4c..81cd7903 100644
--- a/draw/wall.cpp
+++ b/draw/wall.cpp
@@ -27,7 +27,7 @@ void wall_mesh::draw(tile_shader& shader, chunk& c)
if (auto len = i - last.pos; last.atlas && len > 0)
{
mesh.setCount((int)(quad_index_count * len));
- mesh.setIndexRange((int)(last.pos*quad_index_count), 0, max_index);
+ mesh.setIndexOffset((int)(last.pos*quad_index_count), 0, max_index);
shader.draw(last.atlas->texture(), mesh);
draw_count++;
}