Henri Verbeet : wined3d: Only warn about 0 blend ops in gl_blend_op().

Alexandre Julliard julliard at winehq.org
Wed May 24 17:17:33 CDT 2017


Module: wine
Branch: master
Commit: 6e4e3d8117ac7b6398021b44ebbafaf01423bc7d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6e4e3d8117ac7b6398021b44ebbafaf01423bc7d

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed May 24 11:22:12 2017 +0200

wined3d: Only warn about 0 blend ops in gl_blend_op().

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 dd19fa3..df5a3b1 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -348,7 +348,10 @@ static GLenum gl_blend_op(const struct wined3d_gl_info *gl_info, enum wined3d_bl
         case WINED3D_BLEND_OP_MAX:
             return gl_info->supported[EXT_BLEND_MINMAX] ? GL_MAX : GL_FUNC_ADD;
         default:
-            FIXME("Unhandled blend op %#x.\n", op);
+            if (!op)
+                WARN("Unhandled blend op %#x.\n", op);
+            else
+                FIXME("Unhandled blend op %#x.\n", op);
             return GL_FUNC_ADD;
     }
 }




More information about the wine-cvs mailing list