wined3d: Only warn about 0 blend factors in gl_blend_factor().

Some applications reset state by setting all render states to 0. That's
questionable on behalf of the application, but not an issue as far as wined3d
is concerned.

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:11 +02:00 committed by Alexandre Julliard
parent fb75e0863a
commit af767551fe
1 changed files with 4 additions and 1 deletions

View File

@ -428,7 +428,10 @@ static GLenum gl_blend_factor(enum wined3d_blend factor, const struct wined3d_fo
case WINED3D_BLEND_INVSRC1ALPHA:
return GL_ONE_MINUS_SRC1_ALPHA;
default:
FIXME("Unhandled blend factor %#x.\n", factor);
if (!factor)
WARN("Unhandled blend factor %#x.\n", factor);
else
FIXME("Unhandled blend factor %#x.\n", factor);
return GL_NONE;
}
}