vkd3d-shader/dxil: Set the attribute group count to zero if allocation fails.

This commit is contained in:
Giovanni Mascellani
2025-11-21 12:45:29 +01:00
committed by Henri Verbeet
parent 90a38d6c0e
commit 193cf51a59
Notes: Henri Verbeet 2025-12-02 14:37:50 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1842

View File

@@ -8699,6 +8699,7 @@ static void sm6_parser_init_attribute_groups(struct sm6_parser *dxil, const stru
{ {
vkd3d_shader_parser_error(&dxil->p, VKD3D_SHADER_ERROR_DXIL_OUT_OF_MEMORY, vkd3d_shader_parser_error(&dxil->p, VKD3D_SHADER_ERROR_DXIL_OUT_OF_MEMORY,
"Out of memory while allocating the parameter attribute groups array."); "Out of memory while allocating the parameter attribute groups array.");
dxil->attribute_group_count = 0;
return; return;
} }