mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/dxil: Set the attribute group count to zero if allocation fails.
This commit is contained in:
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
@@ -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,
|
||||
"Out of memory while allocating the parameter attribute groups array.");
|
||||
dxil->attribute_group_count = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user