mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Handle error instructions in add_shader_compilation().
This commit is contained in:
committed by
Henri Verbeet
parent
fbd17266cf
commit
f1412e422c
Notes:
Henri Verbeet
2025-01-29 18:04:53 +01:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1359
@@ -5699,6 +5699,16 @@ static struct hlsl_block *add_shader_compilation(struct hlsl_ctx *ctx, const cha
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < args->args_count; ++i)
|
||||
{
|
||||
if (args->args[i]->data_type->class == HLSL_CLASS_ERROR)
|
||||
{
|
||||
args->instrs->value = ctx->error_instr;
|
||||
free(args->args);
|
||||
return args->instrs;
|
||||
}
|
||||
}
|
||||
|
||||
if (!(call_to_compile = add_user_call(ctx, decl, args, true, loc)))
|
||||
{
|
||||
free_parse_initializer(args);
|
||||
|
Reference in New Issue
Block a user