From a6911a13b8e016e4d3ff0c6f7e1f49a6f1cf1bab Mon Sep 17 00:00:00 2001 From: Kimmo Myllyvirta Date: Mon, 10 Oct 2016 09:29:07 +0300 Subject: [PATCH] wined3d: Clear texture flag from correct format when color fixup is not supported. Signed-off-by: Kimmo Myllyvirta Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- 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 8e83040dc7e..2d86b51b625 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