wined3d: Allow to query if surface format supports gamma correction.
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
88567dfe80
commit
b7dcf112e9
|
@ -4640,6 +4640,8 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
|
|||
allowed_usage = WINED3DUSAGE_DEPTHSTENCIL
|
||||
| WINED3DUSAGE_RENDERTARGET
|
||||
| WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING;
|
||||
if (usage & WINED3DUSAGE_RENDERTARGET)
|
||||
allowed_usage |= WINED3DUSAGE_QUERY_SRGBWRITE;
|
||||
gl_type = WINED3D_GL_RES_TYPE_RB;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue