6 Oct
2023
6 Oct
'23
8:04 p.m.
Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/mesh.c:
hr = parse_mesh(filedata, &mesh_data, provide_flags); if (FAILED(hr)) goto cleanup;
+ if (mesh_data.num_vertices == 0) { + if (adjacency_out) *adjacency_out = NULL; + if (materials_out) *materials_out = NULL; + if (effects_out) *effects_out = NULL; + *mesh_out = NULL; + hr = D3D_OK; + goto cleanup; + } +
Same as above (!var instead of var == 0, '{' on its own line), but additionally please put the if () body on its own line. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4031#note_47924