From ad04c6e32ffae4b742291deeee466fc98988905c Mon Sep 17 00:00:00 2001 From: Katajisto Date: Sat, 13 Sep 2025 16:40:32 +0300 Subject: [PATCH] fix bug with trile draw in level editor --- src/editor/level_editor.jai | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/level_editor.jai b/src/editor/level_editor.jai index 9d8fe74..fc10968 100644 --- a/src/editor/level_editor.jai +++ b/src/editor/level_editor.jai @@ -257,7 +257,7 @@ draw_level_editor :: () { sg_apply_bindings(*bindings); sg_apply_uniforms(UB_trile_vs_params, *(sg_range.{ ptr = *vs_params, size = size_of(type_of(vs_params))})); sg_apply_uniforms(UB_trile_world_config, *(sg_range.{ptr = *world_conf, size = size_of(type_of(world_conf))})); - sg_draw(0, cast(s32) trilegfx.vertex_count, idx+1); + sg_draw(0, cast(s32) trilegfx.vertex_count, idx); } }