Matteo Bruni : d3d9: Return one quality level when the multisampling type isn't available.
Module: wine Branch: master Commit: 4c1d6d27d06b9ea0e4cb74182709c54f1b7f00de URL: http://source.winehq.org/git/wine.git/?a=commit;h=4c1d6d27d06b9ea0e4cb741827... Author: Matteo Bruni <mbruni(a)codeweavers.com> Date: Tue Jan 26 22:51:33 2016 +0100 d3d9: Return one quality level when the multisampling type isn't available. Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/d3d9/directx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c index fd6bc8c..fb096c4 100644 --- a/dlls/d3d9/directx.c +++ b/dlls/d3d9/directx.c @@ -309,6 +309,8 @@ static HRESULT WINAPI d3d9_CheckDeviceMultiSampleType(IDirect3D9Ex *iface, UINT hr = wined3d_check_device_multisample_type(d3d9->wined3d, adapter, device_type, wined3dformat_from_d3dformat(format), windowed, multisample_type, levels); wined3d_mutex_unlock(); + if (hr == WINED3DERR_NOTAVAILABLE && levels) + *levels = 1; return hr; }
participants (1)
-
Alexandre Julliard