[PATCH 2/3] d3dx10: Handle format converting for D3DX10CreateTextureFromMemory.

Ziqing Hui zhui at codeweavers.com
Wed Jun 23 22:45:50 CDT 2021


> This patch made me look back to this hunk from D3DX10GetImageInfoFromMemory():
>
> if (img_info->ImageFileFormat == D3DX10_IFF_DDS)
> {
>     ...
> }
> else
> {
>     ...
>     img_info->Format = DXGI_FORMAT_R8G8B8A8_UNORM;
>     ...
> }
>
> That seems suspicious, can't formats other than DDS (e.g. WMP) support
> higher bit depths with d3dx10?
Maybe I can send a patch that adds more test images (e.g. WMP images which have higher bit depths) after this patch set is finished ?



More information about the wine-devel mailing list