From 0d563a69dd171c1ca80ecbc410c41b0814b6d522 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Wed, 10 Apr 2013 01:35:41 +0200 Subject: [PATCH] wined3d: Fix typo, really check whether color fixups are supported. --- 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 7c508eee2b3..d2ada072ec8 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -1724,7 +1724,7 @@ static void apply_format_fixups(struct wined3d_adapter *adapter, struct wined3d_ for (i = 0; i < sizeof(formats) / sizeof(*formats); ++i) { - struct wined3d_format *format = &gl_info->formats[idx]; + struct wined3d_format *format = &gl_info->formats[i]; if (!(format->flags & WINED3DFMT_FLAG_TEXTURE)) continue;