From: Sergey Isakov Subject: [PATCH] wined3d: do not report the same FIXME many times Message-Id: Date: Sat, 28 Mar 2015 11:16:53 +0300 Bug 38208 Unrecognized format running 3DMark05 The problem is not resolved but this patch will reduce log by 1000 lines. Bug 38208
Unrecognized format running 3DMark05
The problem is not resolved but this patch will reduce log by 1000 lines.
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index a772af8..5bb1e12 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -2284,8 +2284,12 @@ const struct wined3d_format *wined3d_get_format(const struct wined3d_gl_info *gl if (idx == -1) { - FIXME("Can't find format %s (%#x) in the format lookup table\n", + static enum wined3d_format_id old_id; + if (old_id != format_id) { + old_id = format_id; + FIXME("Can't find format %s (%#x) in the format lookup table\n", debug_d3dformat(format_id), format_id); + } /* Get the caller a valid pointer */ idx = getFmtIdx(WINED3DFMT_UNKNOWN); }