d3d9: Return one quality level when the multisampling type isn't available.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
42268b8056
commit
4c1d6d27d0
|
@ -309,6 +309,8 @@ static HRESULT WINAPI d3d9_CheckDeviceMultiSampleType(IDirect3D9Ex *iface, UINT
|
||||||
hr = wined3d_check_device_multisample_type(d3d9->wined3d, adapter, device_type,
|
hr = wined3d_check_device_multisample_type(d3d9->wined3d, adapter, device_type,
|
||||||
wined3dformat_from_d3dformat(format), windowed, multisample_type, levels);
|
wined3dformat_from_d3dformat(format), windowed, multisample_type, levels);
|
||||||
wined3d_mutex_unlock();
|
wined3d_mutex_unlock();
|
||||||
|
if (hr == WINED3DERR_NOTAVAILABLE && levels)
|
||||||
|
*levels = 1;
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue