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

d3dx9: Return an error if no fallback format is found.

parent a0840773
......@@ -323,6 +323,11 @@ HRESULT WINAPI D3DXCheckTextureRequirements(struct IDirect3DDevice9 *device, UIN
bestfmt = curfmt;
}
}
if (!bestfmt)
{
hr = D3DERR_NOTAVAILABLE;
goto cleanup;
}
fmt = bestfmt;
hr = D3D_OK;
}
......
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