Kimmo Myllyvirta : wined3d: Clear texture flag from correct format when color fixup is not supported.

Alexandre Julliard julliard at winehq.org
Mon Oct 10 15:09:44 CDT 2016


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

Author: Kimmo Myllyvirta <kimmo.myllyvirta at gmail.com>
Date:   Mon Oct 10 09:29:07 2016 +0300

wined3d: Clear texture flag from correct format when color fixup is not supported.

Signed-off-by: Kimmo Myllyvirta <kimmo.myllyvirta at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 8e83040..2d86b51 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -3245,7 +3245,7 @@ static void apply_format_fixups(struct wined3d_adapter *adapter, struct wined3d_
 
         if (!adapter->shader_backend->shader_color_fixup_supported(format->color_fixup)
                 || !adapter->fragment_pipe->color_fixup_supported(format->color_fixup))
-            format_clear_flag(&gl_info->formats[idx], WINED3DFMT_FLAG_TEXTURE);
+            format_clear_flag(format, WINED3DFMT_FLAG_TEXTURE);
     }
 
     /* GL_EXT_texture_compression_s3tc does not support 3D textures. Some Windows drivers




More information about the wine-cvs mailing list