From 424701126b5613badc23dd7354b26294dc1c6c93 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Dec 2023 10:07:08 +0100 Subject: a --- draw/wall.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'draw') diff --git a/draw/wall.cpp b/draw/wall.cpp index 870cf9b9..1c9c80cc 100644 --- a/draw/wall.cpp +++ b/draw/wall.cpp @@ -38,7 +38,8 @@ void wall_mesh::draw(tile_shader& shader, chunk& c) size_t k; for (k = 0; k < size; k++) do_draw(k, c.wall_atlas_at(ids[k]), max_index); - do_draw(size, nullptr, max_index); + if (size) + do_draw(size, nullptr, max_index); //#define FM_DEBUG_DRAW_COUNT #ifdef FM_DEBUG_DRAW_COUNT -- cgit v1.2.3