=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Allow to query if surface format supports gamma correction.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 8 10:09:22 CST 2016


Module: wine
Branch: master
Commit: b7dcf112e9b3893ff0e7c680c59ff4a6eafaa7b7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b7dcf112e9b3893ff0e7c680c59ff4a6eafaa7b7

Author: Józef Kucia <jkucia at 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 at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
 




More information about the wine-cvs mailing list