[PATCH 5/5] wined3d: Only warn about 0 blend ops in gl_blend_op().
Henri Verbeet
hverbeet at codeweavers.com
Wed May 24 04:22:12 CDT 2017
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
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 dd19fa3..df5a3b1 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -348,7 +348,10 @@ 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);
+ if (!op)
+ WARN("Unhandled blend op %#x.\n", op);
+ else
+ FIXME("Unhandled blend op %#x.\n", op);
return GL_FUNC_ADD;
}
}
--
2.1.4
More information about the wine-patches
mailing list