summaryrefslogtreecommitdiffhomepage
path: root/draw/floor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-08-27 09:59:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-08-27 13:13:57 +0200
commit1c5eb68d2d791c87a2030e4b17fb26bdd7931888 (patch)
tree93086d7eb082f8a7d36840688eca87b42e4ba501 /draw/floor.cpp
parent2a527f27e22ae35d4d8fccc66451745c7c93d1f9 (diff)
draw, main, shaders: now use shaders/tuc
Diffstat (limited to 'draw/floor.cpp')
-rw-r--r--draw/floor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/draw/floor.cpp b/draw/floor.cpp
index d030c5a6..8e92c966 100644
--- a/draw/floor.cpp
+++ b/draw/floor.cpp
@@ -25,10 +25,9 @@ void floor_mesh::draw(tile_shader& shader, chunk& c)
return;
if (auto len = i - last.pos; last.atlas && len > 0)
{
- last.atlas->texture().bind(0);
mesh.setCount((int)(quad_index_count * len));
mesh.setIndexRange((int)(last.pos*quad_index_count), 0, max_index);
- shader.draw(mesh);
+ shader.draw(last.atlas->texture(), mesh);
draw_count++;
}
last = { atlas, i };