wined3d-Silence_FIXMEs: Added patch to display gl_blend_op FIXME only once when op is 0.

This commit is contained in:
Sebastian Lackner 2016-04-05 00:33:14 +02:00
parent f427133a03
commit 1fa34cfef0
2 changed files with 31 additions and 0 deletions

View File

@ -7367,6 +7367,7 @@ if test "$enable_wined3d_Silence_FIXMEs" -eq 1; then
patch_apply wined3d-Silence_FIXMEs/0004-wined3d-Print-FIXME-only-once-in-surface_cpu_blt.patch
patch_apply wined3d-Silence_FIXMEs/0005-wined3d-Silence-repeated-wined3d_swapchain_present-F.patch
patch_apply wined3d-Silence_FIXMEs/0006-wined3d-Silence-extremely-noisy-FIXME-in-wined3d_tex.patch
patch_apply wined3d-Silence_FIXMEs/0007-wined3d-Display-FIXME-only-once-when-blen-op-is-0.patch
(
echo '+ { "Sebastian Lackner", "wined3d: Silence repeated '\''Unhandled blend factor 0'\'' messages.", 1 },';
echo '+ { "Christian Costa", "wined3d: Display FIXME for cmp function 0 only once.", 1 },';
@ -7374,6 +7375,7 @@ if test "$enable_wined3d_Silence_FIXMEs" -eq 1; then
echo '+ { "Christian Costa", "wined3d: Print FIXME only once in surface_cpu_blt.", 1 },';
echo '+ { "Sebastian Lackner", "wined3d: Silence repeated wined3d_swapchain_present FIXME.", 1 },';
echo '+ { "Sebastian Lackner", "wined3d: Silence extremely noisy FIXME in wined3d_texture_add_dirty_region.", 1 },';
echo '+ { "Christian Costa", "wined3d: Display FIXME only once when blen op is 0.", 1 },';
) >> "$patchlist"
fi

View File

@ -0,0 +1,29 @@
From dbce3be53546b6d2f9db58c53d8d5376092dc83b Mon Sep 17 00:00:00 2001
From: Christian Costa <titan.costa@gmail.com>
Date: Sun, 3 Apr 2016 22:30:59 +0200
Subject: wined3d: Display FIXME only once when blen op is 0.
---
dlls/wined3d/state.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index e5e550e..6ca506b 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -291,8 +291,11 @@ static GLenum gl_blend_op(const struct wined3d_gl_info *gl_info, enum wined3d_bl
case WINED3D_BLEND_OP_MAX:
return gl_info->supported[EXT_BLEND_MINMAX] ? GL_MAX : GL_FUNC_ADD;
default:
- FIXME("Unhandled blend op %#x.\n", op);
+ {
+ static int once;
+ if (op || !once++) FIXME("Unhandled blend op %#x.\n", op);
return GL_FUNC_ADD;
+ }
}
}
--
2.7.1