summaryrefslogtreecommitdiffhomepage
path: root/draw/floor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'draw/floor.cpp')
-rw-r--r--draw/floor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/floor.cpp b/draw/floor.cpp
index 8e92c966..8736eea8 100644
--- a/draw/floor.cpp
+++ b/draw/floor.cpp
@@ -26,7 +26,7 @@ void floor_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++;
}