mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
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:
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
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user