diff options
Diffstat (limited to 'draw/ground.cpp')
| -rw-r--r-- | draw/ground.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/draw/ground.cpp b/draw/ground.cpp index 515729b1..b049f96d 100644 --- a/draw/ground.cpp +++ b/draw/ground.cpp @@ -13,6 +13,8 @@ void ground_mesh::draw(tile_shader& shader, chunk& c) { constexpr int quad_index_count = 6; const auto [mesh_, ids, size] = c.ensure_ground_mesh(); + if (size == 0) + return; struct { ground_atlas* atlas = nullptr; size_t pos = 0; } last; GL::MeshView mesh{mesh_}; |
