mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/dxil: Destroy the SM6 parser on parsing errors.
This commit is contained in:
parent
78220ed07e
commit
531c41306d
Notes:
Alexandre Julliard
2023-09-22 22:46:19 +02:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/317
@ -2955,6 +2955,9 @@ int vkd3d_shader_sm6_parser_create(const struct vkd3d_shader_compile_info *compi
|
||||
compile_info->source_name, message_context);
|
||||
vkd3d_free(byte_code);
|
||||
|
||||
if (sm6->p.failed && ret >= 0)
|
||||
ret = VKD3D_ERROR_INVALID_SHADER;
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
WARN("Failed to initialise shader parser.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user