Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/surface.c:
goto exit; image->format = d3dx_pixel_format_id_from_wic_pixel_format(&pixel_format);
- if (image->format == D3DX_PIXEL_FORMAT_COUNT)
- switch (image->format) {
WARN("Unsupported pixel format %s.\n", debugstr_guid(&pixel_format));
hr = D3DXERR_INVALIDDATA;
goto exit;
case D3DX_PIXEL_FORMAT_P2_UINT:
if (image->image_file_format != D3DXIFF_BMP)
break;
Out of curiosity, what happens with BMP?