[PATCH 4/6] wined3d: Do not bother to check identity fixup support.

Józef Kucia jkucia at codeweavers.com
Fri May 26 03:48:05 CDT 2017


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

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 912511b..cc58042 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -3350,6 +3350,9 @@ static void apply_format_fixups(struct wined3d_adapter *adapter, struct wined3d_
         if (!(format->flags[WINED3D_GL_RES_TYPE_TEX_2D] & WINED3DFMT_FLAG_TEXTURE))
             continue;
 
+        if (is_identity_fixup(format->color_fixup))
+            continue;
+
         TRACE("Checking support for fixup:\n");
         dump_color_fixup_desc(format->color_fixup);
         if (!adapter->shader_backend->shader_color_fixup_supported(format->color_fixup)
-- 
2.10.2




More information about the wine-patches mailing list