[PATCH 6/7] wined3d: Allow to query if surface format supports gamma correction.

Józef Kucia jkucia at codeweavers.com
Sun Feb 7 17:04:41 CST 2016


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
resend
---
 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;
 
-- 
2.4.10




More information about the wine-patches mailing list