Skip to content

Commit

Permalink
Fix dual call to FindType, I meant to use the result of the search I …
Browse files Browse the repository at this point in the history
…added.
  • Loading branch information
danginsburg committed Dec 3, 2024
1 parent dd955e2 commit 1bd3334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spirv_reflect.c
Original file line number Diff line number Diff line change
Expand Up @@ -2549,7 +2549,7 @@ static SpvReflectResult ParseDescriptorBlockVariable(SpvReflectPrvParser* p_pars
p_struct_type_description = FindType(p_module, p_member_type->id)->struct_type_description;
}
if (p_struct_type_description) {
uint32_t struct_id = FindType(p_module, p_member_type->id)->struct_type_description->id;
uint32_t struct_id = p_struct_type_description->id;
p_parser->physical_pointer_structs[p_parser->physical_pointer_struct_count].struct_id = struct_id;
p_parser->physical_pointer_structs[p_parser->physical_pointer_struct_count].p_var = p_member_var;
p_parser->physical_pointer_struct_count++;
Expand Down

0 comments on commit 1bd3334

Please sign in to comment.