mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Do not abort when modifying a const expression.
This commit is contained in:
parent
3264378fa0
commit
9c70348b39
Notes:
Henri Verbeet
2024-12-03 14:56:02 +01:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1233
@ -9403,10 +9403,7 @@ assignment_expr:
|
||||
struct hlsl_ir_node *lhs = node_from_block($1), *rhs = node_from_block($3);
|
||||
|
||||
if (lhs->data_type->modifiers & HLSL_MODIFIER_CONST)
|
||||
{
|
||||
hlsl_error(ctx, &@2, VKD3D_SHADER_ERROR_HLSL_MODIFIES_CONST, "Statement modifies a const expression.");
|
||||
YYABORT;
|
||||
}
|
||||
hlsl_block_add_block($3, $1);
|
||||
destroy_block($1);
|
||||
if (!add_assignment(ctx, $3, lhs, $2, rhs))
|
||||
|
Loading…
x
Reference in New Issue
Block a user