Skip to content
Snippets Groups Projects
Commit c54f90d7 authored by Sebastian Mayr's avatar Sebastian Mayr
Browse files

wined3d: Improve d3d8 compatibility of texture filters.

In d3d8, setting texture filters to invalid values does not yield an
error when calling IDirect3DDevice8::ValidateDevice. Some applications,
such as Worms Blast, rely on this behaviour.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54898
parent 5e4a656f
Branches
Tags
No related merge requests found
Pipeline #10536 failed
......@@ -2409,6 +2409,15 @@ static HRESULT WINAPI d3d8_device_ValidateDevice(IDirect3DDevice8 *iface, DWORD
hr = wined3d_device_validate_device(device->wined3d_device, pass_count);
wined3d_mutex_unlock();
/* In d3d8, texture filters are not validated, so errors concerning
* unsupported ones are ignored here. */
if (hr == WINED3DERR_UNSUPPORTEDTEXTUREFILTER)
{
WARN("Ignoring invalid texture filter settings.\n");
*pass_count = 1;
return D3D_OK;
}
return hr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment