mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/dxil: Check for src param allocation failure in sm6_parser_emit_dx_tertiary().
This commit is contained in:
parent
1a2de25273
commit
eb1bfaa821
Notes:
Alexandre Julliard
2024-02-14 23:27:12 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/647
@ -3935,7 +3935,8 @@ static void sm6_parser_emit_dx_tertiary(struct sm6_parser *sm6, enum dx_intrinsi
|
||||
unsigned int i;
|
||||
|
||||
vsir_instruction_init(ins, &sm6->p.location, sm6_dx_map_tertiary_op(op));
|
||||
src_params = instruction_src_params_alloc(ins, 3, sm6);
|
||||
if (!(src_params = instruction_src_params_alloc(ins, 3, sm6)))
|
||||
return;
|
||||
for (i = 0; i < 3; ++i)
|
||||
src_param_init_from_value(&src_params[i], operands[i]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user