correctly adjust version-remapped binding strings

This commit is contained in:
Ryan Fleury
2024-01-22 13:53:02 -08:00
parent 1d225703ca
commit bb97c185bd
+6 -6
View File
@@ -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)
{