Module: wine Branch: master Commit: af767551fe1dcd7f8fbfc03dfe907eb3bc3e771d URL: http://source.winehq.org/git/wine.git/?a=commit;h=af767551fe1dcd7f8fbfc03dfe...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed May 24 11:22:11 2017 +0200
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
---
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 ad063fe..dd19fa3 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -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; } }