mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/dxbc: Remove redundant zero-initialization of the vkd3d_shader_desc structure.
This commit is contained in:
parent
300f3462a4
commit
dfb2a316e6
Notes:
Alexandre Julliard
2023-07-04 23:25:44 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/255
@ -531,12 +531,6 @@ int shader_extract_from_dxbc(const struct vkd3d_shader_code *dxbc,
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
desc->byte_code = NULL;
|
|
||||||
desc->byte_code_size = 0;
|
|
||||||
memset(&desc->input_signature, 0, sizeof(desc->input_signature));
|
|
||||||
memset(&desc->output_signature, 0, sizeof(desc->output_signature));
|
|
||||||
memset(&desc->patch_constant_signature, 0, sizeof(desc->patch_constant_signature));
|
|
||||||
|
|
||||||
ret = for_each_dxbc_section(dxbc, message_context, source_name, shdr_handler, desc);
|
ret = for_each_dxbc_section(dxbc, message_context, source_name, shdr_handler, desc);
|
||||||
if (!desc->byte_code)
|
if (!desc->byte_code)
|
||||||
ret = VKD3D_ERROR_INVALID_ARGUMENT;
|
ret = VKD3D_ERROR_INVALID_ARGUMENT;
|
||||||
|
Loading…
Reference in New Issue
Block a user