diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-22 10:07:08 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-22 10:07:08 +0100 |
commit | 424701126b5613badc23dd7354b26294dc1c6c93 (patch) | |
tree | d7d87af8c659fde18fdf269ec2cade08e229abfc /draw | |
parent | dba52df4581329a692d889d76cb7f093e7e3f7d9 (diff) |
a
Diffstat (limited to 'draw')
-rw-r--r-- | draw/wall.cpp | 3 |
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 |