Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/surface.c:
- const struct pixel_format_desc *fmt_desc = get_format_info(format);
- UINT i, file_size = 0;
- const struct pixel_format_desc *dst_fmt_desc;
- uint32_t dst_row_pitch, dst_slice_pitch;
- enum d3dx_pixel_format_id dst_format;
- struct d3dx_pixels dst_pixels;
- ID3DXBuffer *buffer = NULL;
- uint8_t *pixels;
- HRESULT hr;
- for (i = 0; i < miplevels; i++)
- *dst_buffer = NULL;
- dst_format = src_fmt_desc->format;
- hr = dds_pixel_format_from_d3dx_pixel_format_id(NULL, dst_format);
- if (FAILED(hr))
return hr;
Obviously it doesn't matter at the moment, but this should probably go after the `file_format` switch.