d3dx9_36: Add support for 32-bit BGRA in D3DXGetImageInfoFromFileInMemory.
This commit is contained in:
parent
36822bbd7d
commit
9e67f954f1
|
@ -129,6 +129,8 @@ HRESULT WINAPI D3DXGetImageInfoFromFileInMemory(LPCVOID data, UINT datasize, D3D
|
||||||
info->Format = D3DFMT_R8G8B8;
|
info->Format = D3DFMT_R8G8B8;
|
||||||
else if (IsEqualGUID(&pixel_format, &GUID_WICPixelFormat32bppBGR))
|
else if (IsEqualGUID(&pixel_format, &GUID_WICPixelFormat32bppBGR))
|
||||||
info->Format = D3DFMT_X8R8G8B8;
|
info->Format = D3DFMT_X8R8G8B8;
|
||||||
|
else if (IsEqualGUID(&pixel_format, &GUID_WICPixelFormat32bppBGRA))
|
||||||
|
info->Format = D3DFMT_A8R8G8B8;
|
||||||
else {
|
else {
|
||||||
WARN("Unsupported pixel format %s\n", debugstr_guid(&pixel_format));
|
WARN("Unsupported pixel format %s\n", debugstr_guid(&pixel_format));
|
||||||
hr = D3DXERR_INVALIDDATA;
|
hr = D3DXERR_INVALIDDATA;
|
||||||
|
|
Loading…
Reference in New Issue