mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader: Remove a duplicate check for semantics on void functions.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7758882732
commit
d423f8f469
@ -1765,10 +1765,6 @@ hlsl_prog:
|
||||
}
|
||||
}
|
||||
|
||||
if (hlsl_type_is_void($2.decl->return_type) && $2.decl->semantic)
|
||||
hlsl_error(ctx, $2.decl->loc, VKD3D_SHADER_ERROR_HLSL_INVALID_SEMANTIC,
|
||||
"Semantics are not allowed on void functions.");
|
||||
|
||||
hlsl_add_function(&ctx->functions, $2.name, $2.decl, false);
|
||||
}
|
||||
| hlsl_prog declaration_statement
|
||||
|
Loading…
x
Reference in New Issue
Block a user