From 6bf9eefac1ce5e17efeb344d498499d38ae64296 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 8 Dec 2022 08:27:59 +0100 Subject: draw: add some asserts --- draw/floor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'draw/floor.cpp') diff --git a/draw/floor.cpp b/draw/floor.cpp index 5b5a515f..fe585977 100644 --- a/draw/floor.cpp +++ b/draw/floor.cpp @@ -19,6 +19,7 @@ void floor_mesh::draw(tile_shader& shader, chunk& c) GL::MeshView mesh{mesh_}; [[maybe_unused]] std::size_t draw_count = 0; + fm_debug_assert(std::size_t(mesh_.count()) == size*quad_index_count); const auto do_draw = [&](std::size_t i, tile_atlas* atlas, std::uint32_t max_index) { if (atlas == last.atlas) -- cgit v1.2.3