wined3d: Only warn about 0 blend ops in gl_blend_op().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-05-24 11:22:12 +02:00 committed by Alexandre Julliard
parent af767551fe
commit 6e4e3d8117
1 changed files with 4 additions and 1 deletions

View File

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