Commit b744a309 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dx9: Simplify unsupported format check.

parent d5e175e3
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment