d3dcompiler: Avoid "naked" vars in record dereferences.
This commit is contained in:
parent
80b73ffcef
commit
426b5b3609
|
@ -1568,7 +1568,10 @@ struct hlsl_ir_deref *new_record_deref(struct hlsl_ir_node *record, struct hlsl_
|
|||
deref->node.type = HLSL_IR_DEREF;
|
||||
deref->node.data_type = field->type;
|
||||
deref->type = HLSL_IR_DEREF_RECORD;
|
||||
deref->v.record.record = record;
|
||||
if (record->type == HLSL_IR_VAR)
|
||||
deref->v.record.record = &new_var_deref(var_from_node(record))->node;
|
||||
else
|
||||
deref->v.record.record = record;
|
||||
deref->v.record.field = field;
|
||||
return deref;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue