mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Do not dump the target shader if compilation failed.
Otherwise we'd use unitialized data.
This commit is contained in:
parent
a1f712d100
commit
6a03369f84
Notes:
Henri Verbeet
2024-10-23 16:18:57 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1220
@ -1746,6 +1746,7 @@ int vkd3d_shader_compile(const struct vkd3d_shader_compile_info *compile_info,
|
||||
}
|
||||
}
|
||||
|
||||
if (ret >= 0)
|
||||
vkd3d_shader_dump_shader(&dump_data, out->code, out->size, false);
|
||||
|
||||
vkd3d_shader_message_context_trace_messages(&message_context);
|
||||
|
Loading…
Reference in New Issue
Block a user