d3dx9: Simplify unsupported format check.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2019-09-24 19:46:25 +02:00 committed by Alexandre Julliard
parent d5e175e32b
commit b744a309ac
1 changed files with 2 additions and 2 deletions

View File

@ -1890,9 +1890,9 @@ HRESULT WINAPI D3DXLoadSurfaceFromMemory(IDirect3DSurface9 *dst_surface,
srcformatdesc = get_format_info(src_format);
destformatdesc = get_format_info(surfdesc.Format);
if (srcformatdesc->type == FORMAT_UNKNOWN || destformatdesc->type == FORMAT_UNKNOWN)
if (srcformatdesc->type == FORMAT_UNKNOWN)
{
FIXME("Unsupported pixel format conversion %#x -> %#x\n", src_format, surfdesc.Format);
FIXME("Unsupported format %#x.\n", src_format);
return E_NOTIMPL;
}