From 1c5eb68d2d791c87a2030e4b17fb26bdd7931888 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 27 Aug 2023 09:59:06 +0200 Subject: draw, main, shaders: now use shaders/tuc --- draw/floor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'draw/floor.cpp') 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 }; -- cgit v1.2.3