25 Aug
2022
25 Aug
'22
10:21 p.m.
Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/compiler.c:
if (errors) *errors = NULL;
- if (FAILED(hr = D3DCompile(data, datasize, filename, defines, include, "main", profile, - shader_flags, effect_flags, &code, errors))) + buffer = (void *)data; + size = datasize; + + /* Effect is not compiled. */ + if (datasize < sizeof(dxbc) || memcmp(dxbc, data, sizeof(dxbc)) != 0)
We usually do without the explicit "!= 0". -- https://gitlab.winehq.org/wine/wine/-/merge_requests/697#note_6962