vkd3d-shader/hlsl: Always initialize $$ when parsing modifiers from an arbitrary string.

This avoids spurious errors like "row_major and column_major are mutually
exclusive" when an invalid modifier is used.

Fixes: cf7c05f431
This commit is contained in:
Elizabeth Figura 2024-05-31 14:45:41 -05:00 committed by Henri Verbeet
parent 72ddea6030
commit 2f88442d7d
Notes: Henri Verbeet 2024-06-11 17:09:33 +02:00
Approved-by: Matteo Bruni (@Mystral)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/903

View File

@ -7296,6 +7296,8 @@ var_modifiers:
}
| var_identifier var_modifiers
{
$$ = $2;
if (!strcmp($1, "precise"))
$$ = add_modifiers(ctx, $2, HLSL_MODIFIER_PRECISE, &@1);
else if (!strcmp($1, "single"))