[PATCH 4/6] d3d9: Return one quality level when the multisampling type isn't available.
Matteo Bruni
mbruni at codeweavers.com
Wed Jan 13 17:00:07 CST 2016
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
It's probably an unimportant d3d9 quirk but since I'm here...
dlls/d3d9/directx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c
index fb18345..b379216 100644
--- a/dlls/d3d9/directx.c
+++ b/dlls/d3d9/directx.c
@@ -287,6 +287,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;
}
--
2.4.10
More information about the wine-patches
mailing list