d3dx9: Fix an error check in D3DXLoadMeshFromXResource.
This commit is contained in:
parent
0289530f07
commit
c4d29bdb18
|
@ -3376,7 +3376,7 @@ HRESULT WINAPI D3DXLoadMeshFromXResource(HMODULE module,
|
|||
if (!resinfo) return D3DXERR_INVALIDDATA;
|
||||
|
||||
hr = load_resource_into_memory(module, resinfo, &buffer, &size);
|
||||
if (!FAILED(hr)) return D3DXERR_INVALIDDATA;
|
||||
if (FAILED(hr)) return D3DXERR_INVALIDDATA;
|
||||
|
||||
return D3DXLoadMeshFromXInMemory(buffer, size, options, device, adjacency,
|
||||
materials, effect_instances, num_materials, mesh);
|
||||
|
|
Loading…
Reference in New Issue