From bb97c185bd7ac8bee78f514582630eb49e40d489 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 22 Jan 2024 13:53:02 -0800 Subject: [PATCH] correctly adjust version-remapped binding strings --- src/df/gfx/df_gfx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/df/gfx/df_gfx.c b/src/df/gfx/df_gfx.c index f89fbda3..82c945bf 100644 --- a/src/df/gfx/df_gfx.c +++ b/src/df/gfx/df_gfx.c @@ -11498,18 +11498,18 @@ df_gfx_begin_frame(Arena *arena, DF_CmdList *cmds) else { DF_CmdSpec *spec = df_cmd_spec_from_string(child->string); - if(!df_cmd_spec_is_nil(spec)) - { - cmd_spec = spec; - } - else for(U64 idx = 0; idx < ArrayCount(df_g_binding_version_remap_old_name_table); idx += 1) + for(U64 idx = 0; idx < ArrayCount(df_g_binding_version_remap_old_name_table); idx += 1) { if(str8_match(df_g_binding_version_remap_old_name_table[idx], child->string, StringMatchFlag_CaseInsensitive)) { String8 new_name = df_g_binding_version_remap_new_name_table[idx]; - cmd_spec = df_cmd_spec_from_string(new_name); + spec = df_cmd_spec_from_string(new_name); } } + if(!df_cmd_spec_is_nil(spec)) + { + cmd_spec = spec; + } OS_Key k = df_os_key_from_cfg_string(child->string); if(k != OS_Key_Null) {