From e637ffa5239c0b403fe07a7127b01fa934a1358b Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 26 Jul 2024 11:24:08 -0700 Subject: [PATCH] fix incorrect inline depth check --- src/df/core/df_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/df/core/df_core.c b/src/df/core/df_core.c index d44b6cca..1699627f 100644 --- a/src/df/core/df_core.c +++ b/src/df/core/df_core.c @@ -7615,7 +7615,7 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt) DF_UnwindFrame *frame = &rich_unwind.frames.v[params.unwind_index]; df_state->ctrl_ctx.unwind_count = params.unwind_index; df_state->ctrl_ctx.inline_depth = 0; - if(params.inline_depth < frame->inline_frame_count) + if(params.inline_depth <= frame->inline_frame_count) { df_state->ctrl_ctx.inline_depth = params.inline_depth; }