=?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
Tue Apr 12 06:45:26 CDT 2016


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

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>
(cherry picked from commit b7dcf112e9b3893ff0e7c680c59ff4a6eafaa7b7)
Signed-off-by: Michael Stefaniuc <mstefani 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 254102e..eb414cc 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -4651,6 +4651,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