Module: wine Branch: master Commit: b7dcf112e9b3893ff0e7c680c59ff4a6eafaa7b7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7dcf112e9b3893ff0e7c680c5...
Author: Józef Kucia jkucia@codeweavers.com Date: Mon Feb 8 00:04:41 2016 +0100
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
---
dlls/wined3d/directx.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 78c58ab..329da15 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -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;