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

Józef Kucia jkucia at codeweavers.com
Fri Feb 5 08:08:12 CST 2016


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
For bug 40053.
---
 dlls/wined3d/directx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index afcac3b..c62c829 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -4635,6 +4635,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