[PATCH 5/5] wined3d: Disable sRGB decode in swapchain_blit().

Henri Verbeet hverbeet at codeweavers.com
Fri Feb 10 06:58:59 CST 2017


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 dlls/wined3d/swapchain.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 56646e7..dfb62c8 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -387,6 +387,9 @@ static void swapchain_blit(const struct wined3d_swapchain *swapchain,
         device->blitter->set_shader(device->blit_priv, context2, back_buffer, NULL);
         gl_info->gl_ops.gl.p_glTexParameteri(back_buffer->texture_target, GL_TEXTURE_MIN_FILTER, gl_filter);
         gl_info->gl_ops.gl.p_glTexParameteri(back_buffer->texture_target, GL_TEXTURE_MAG_FILTER, gl_filter);
+        if (gl_info->supported[EXT_TEXTURE_SRGB_DECODE])
+            gl_info->gl_ops.gl.p_glTexParameteri(back_buffer->texture_target,
+                    GL_TEXTURE_SRGB_DECODE_EXT, GL_SKIP_DECODE_EXT);
 
         context_set_draw_buffer(context, GL_BACK);
 
-- 
2.1.4




More information about the wine-patches mailing list