mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[WINESYNC] d3dx9: Return an error if no fallback format is found.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id fcdcd5d3cbb58a40894f661fd8a9285b81a55789 by Matteo Bruni <mbruni@codeweavers.com>
This commit is contained in:
parent
4053a5ada3
commit
28df0e9ba8
2 changed files with 6 additions and 1 deletions
|
@ -327,6 +327,11 @@ HRESULT WINAPI D3DXCheckTextureRequirements(struct IDirect3DDevice9 *device, UIN
|
|||
bestfmt = curfmt;
|
||||
}
|
||||
}
|
||||
if (!bestfmt)
|
||||
{
|
||||
hr = D3DERR_NOTAVAILABLE;
|
||||
goto cleanup;
|
||||
}
|
||||
fmt = bestfmt;
|
||||
hr = D3D_OK;
|
||||
}
|
||||
|
|
|
@ -15,4 +15,4 @@ files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, include/d3dx9anim.h: sdk/inc
|
|||
include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h,
|
||||
include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
|
||||
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h}
|
||||
tags: {wine: a0840773f7ee00dc9373b4db825fec68d08ee53b}
|
||||
tags: {wine: fcdcd5d3cbb58a40894f661fd8a9285b81a55789}
|
||||
|
|
Loading…
Reference in a new issue