16 Nov
2022
16 Nov
'22
2:22 p.m.
Matteo Bruni (@Mystral) commented about dlls/d3dcompiler_43/compiler.c:
ret = vkd3d_shader_preprocess(&compile_info, &byte_code, &messages); + + if (!ret) + { + if (FAILED(hr = D3DCreateBlob(byte_code.size, shader_blob))) + { + vkd3d_shader_free_shader_code(&byte_code); + return hr; + } + memcpy(ID3D10Blob_GetBufferPointer(*shader_blob), byte_code.code, byte_code.size); + } + else + { + ERR("Failed to compile shader, vkd3d result %d.\n", ret); + }
Same comment as the other patch. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1340#note_16057