mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-compiler: Properly forward argument validation failures.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
758b984c41
commit
9375950450
@ -686,13 +686,13 @@ int main(int argc, char **argv)
|
|||||||
fprintf(stderr, "Target type '%s' is invalid for source type '%s'.\n",
|
fprintf(stderr, "Target type '%s' is invalid for source type '%s'.\n",
|
||||||
get_target_type_info(options.target_type)->name,
|
get_target_type_info(options.target_type)->name,
|
||||||
get_source_type_info(options.source_type)->name);
|
get_source_type_info(options.source_type)->name);
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.preprocess_only && options.source_type == VKD3D_SHADER_SOURCE_HLSL && !options.profile)
|
if (!options.preprocess_only && options.source_type == VKD3D_SHADER_SOURCE_HLSL && !options.profile)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "You need to specify a profile when compiling from HLSL source.\n");
|
fprintf(stderr, "You need to specify a profile when compiling from HLSL source.\n");
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.filename && get_source_type_info(options.source_type)->is_binary && isatty(fileno(input)))
|
if (!options.filename && get_source_type_info(options.source_type)->is_binary && isatty(fileno(input)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user