Commit 995139bc authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d11: Set more format support flags.

parent daa9906c
......@@ -3344,6 +3344,20 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFormatSupport(ID3D11Device2 *
}
wined3d_mutex_unlock();
if (*format_support & (D3D11_FORMAT_SUPPORT_TEXTURE1D
| D3D11_FORMAT_SUPPORT_TEXTURE2D | D3D11_FORMAT_SUPPORT_TEXTURE3D))
{
*format_support |= D3D11_FORMAT_SUPPORT_SHADER_LOAD;
*format_support |= D3D11_FORMAT_SUPPORT_SHADER_SAMPLE;
*format_support |= D3D11_FORMAT_SUPPORT_SHADER_GATHER;
if (*format_support & D3D11_FORMAT_SUPPORT_DEPTH_STENCIL)
{
*format_support |= D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON;
*format_support |= D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON;
}
}
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