From 42074346d24e7942952c0d7e2229721989ea704e Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Mon, 15 Feb 2016 07:14:29 +0100 Subject: [PATCH] Added patch to silence repeated FIXME for unrecognized compare function 0. --- patches/patchinstall.sh | 2 ++ ...y-FIXME-for-cmp-function-0-only-once.patch | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 patches/wined3d-UnhandledBlendFactor/0002-wined3d-Display-FIXME-for-cmp-function-0-only-once.patch diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 1fb758b3..b1231508 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -6723,8 +6723,10 @@ fi # | if test "$enable_wined3d_UnhandledBlendFactor" -eq 1; then patch_apply wined3d-UnhandledBlendFactor/0001-wined3d-Silence-repeated-Unhandled-blend-factor-0-me.patch + patch_apply wined3d-UnhandledBlendFactor/0002-wined3d-Display-FIXME-for-cmp-function-0-only-once.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 },'; ) >> "$patchlist" fi diff --git a/patches/wined3d-UnhandledBlendFactor/0002-wined3d-Display-FIXME-for-cmp-function-0-only-once.patch b/patches/wined3d-UnhandledBlendFactor/0002-wined3d-Display-FIXME-for-cmp-function-0-only-once.patch new file mode 100644 index 00000000..2a69a30e --- /dev/null +++ b/patches/wined3d-UnhandledBlendFactor/0002-wined3d-Display-FIXME-for-cmp-function-0-only-once.patch @@ -0,0 +1,29 @@ +From ddf59a2c4bed6165d79c2cc7655c8151d99e7965 Mon Sep 17 00:00:00 2001 +From: Christian Costa +Date: Sun, 14 Feb 2016 19:32:45 +0100 +Subject: wined3d: Display FIXME for cmp function 0 only once. + +--- + 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 21e49eb..8f7c9bd 100644 +--- a/dlls/wined3d/state.c ++++ b/dlls/wined3d/state.c +@@ -241,8 +241,11 @@ GLenum wined3d_gl_compare_func(enum wined3d_cmp_func f) + case WINED3D_CMP_ALWAYS: + return GL_ALWAYS; + default: +- FIXME("Unrecognized compare function %#x.\n", f); ++ { ++ static int once; ++ if (f || !once++) FIXME("Unrecognized compare function %#x.\n", f); + return GL_NONE; ++ } + } + } + +-- +2.7.1 +