d3d11: Enable sRGB decode.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1769ea38e6
commit
e6b7ad8e45
|
@ -1195,7 +1195,7 @@ HRESULT d3d_sampler_state_init(struct d3d_sampler_state *state, struct d3d_devic
|
|||
wined3d_desc.max_anisotropy = D3D11_DECODE_IS_ANISOTROPIC_FILTER(desc->Filter) ? desc->MaxAnisotropy : 1;
|
||||
wined3d_desc.compare = wined3d_texture_compare_from_d3d11(desc->Filter);
|
||||
wined3d_desc.comparison_func = wined3d_cmp_func_from_d3d11(desc->ComparisonFunc);
|
||||
wined3d_desc.srgb_decode = FALSE;
|
||||
wined3d_desc.srgb_decode = TRUE;
|
||||
|
||||
if (FAILED(hr = wined3d_sampler_create(device->wined3d_device, &wined3d_desc, state, &state->wined3d_sampler)))
|
||||
{
|
||||
|
|
|
@ -788,10 +788,6 @@ static void create_default_sampler(struct wined3d_device *device)
|
|||
checkGLcall("glGenSamplers");
|
||||
GL_EXTCALL(glSamplerParameteri(device->default_sampler, GL_TEXTURE_MAG_FILTER, GL_NEAREST));
|
||||
GL_EXTCALL(glSamplerParameteri(device->default_sampler, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_NEAREST));
|
||||
if (gl_info->supported[EXT_TEXTURE_SRGB_DECODE])
|
||||
{
|
||||
GL_EXTCALL(glSamplerParameteri(device->default_sampler, GL_TEXTURE_SRGB_DECODE_EXT, GL_SKIP_DECODE_EXT));
|
||||
}
|
||||
checkGLcall("glSamplerParamteri");
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue