[PATCH 4/5] wined3d: Only warn about 0 blend factors in gl_blend_factor().

Henri Verbeet hverbeet at codeweavers.com
Wed May 24 04:22:11 CDT 2017


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 at codeweavers.com>
---
 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;
     }
 }
-- 
2.1.4




More information about the wine-patches mailing list