summaryrefslogtreecommitdiffhomepage
path: root/draw
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-12-22 10:07:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-12-22 10:07:08 +0100
commit424701126b5613badc23dd7354b26294dc1c6c93 (patch)
treed7d87af8c659fde18fdf269ec2cade08e229abfc /draw
parentdba52df4581329a692d889d76cb7f093e7e3f7d9 (diff)
a
Diffstat (limited to 'draw')
-rw-r--r--draw/wall.cpp3
1 files changed, 2 insertions, 1 deletions
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