Commit 0b56461f authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3d11: Report multisample flags in CheckFormatSupport().

parent 2d218e3e
......@@ -3402,6 +3402,18 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFormatSupport(ID3D11Device2 *
}
}
/* d3d11 requires 4 and 8 sample counts support for formats reported to
* support multisample. */
if (wined3d_check_device_multisample_type(wined3d_adapter, params.device_type, wined3d_format,
TRUE, WINED3D_MULTISAMPLE_4_SAMPLES, NULL) == WINED3D_OK &&
wined3d_check_device_multisample_type(wined3d_adapter, params.device_type, wined3d_format,
TRUE, WINED3D_MULTISAMPLE_8_SAMPLES, NULL) == WINED3D_OK)
{
*format_support |= D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE
| D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET
| D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD;
}
return S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment