Commit af767551 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fb75e086
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment