diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-23 13:55:54 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-23 13:55:54 +0200 |
| commit | d06dcbaba14ab511eedf30ae39418989f0139499 (patch) | |
| tree | aade509e608830d41bc2bdc5a99d90691efe3f53 /draw | |
| parent | 50750ecf026d3fd382869b446d9a799525694a64 (diff) | |
b
Diffstat (limited to 'draw')
| -rw-r--r-- | draw/anim.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp index 0cacff62..19a71ac3 100644 --- a/draw/anim.cpp +++ b/draw/anim.cpp @@ -135,9 +135,9 @@ void anim_mesh::draw(tile_shader& shader, const Vector2i& win_size, chunk& c, Ar if (!e.is_dynamic()) { #if 1 // todo! recalc it when chunk's object list changes! - auto r = get_contig_draw_len(es, k); + const auto r = get_contig_draw_len(es, k); #else - auto r = minmax_s{1, x.mesh_idx}; + constexpr auto r = minmax_s{1, x.mesh_idx}; #endif uint32_t count = r.len; GL::MeshView mesh{mesh_}; |
