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:
parent
fb75e0863a
commit
af767551fe
|
@ -428,6 +428,9 @@ static GLenum gl_blend_factor(enum wined3d_blend factor, const struct wined3d_fo
|
|||
case WINED3D_BLEND_INVSRC1ALPHA:
|
||||
return GL_ONE_MINUS_SRC1_ALPHA;
|
||||
default:
|
||||
if (!factor)
|
||||
WARN("Unhandled blend factor %#x.\n", factor);
|
||||
else
|
||||
FIXME("Unhandled blend factor %#x.\n", factor);
|
||||
return GL_NONE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue