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

@@ -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