Henri Verbeet : wined3d: Only warn about 0 stencil ops in gl_stencil_op().

Alexandre Julliard julliard at winehq.org
Fri Oct 20 07:19:57 CDT 2017


Module: wine
Branch: stable
Commit: f1d111d99a71dc0341089ef0c651dc5f6cdfac2f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f1d111d99a71dc0341089ef0c651dc5f6cdfac2f

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu May 25 12:04:06 2017 +0200

wined3d: Only warn about 0 stencil ops in gl_stencil_op().

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 059784221822f00dde5810f2c8a1e4b08f862246)
Signed-off-by: Michael Stefaniuc <mstefani 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 3c0bb5e..d61fa23 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -827,7 +827,10 @@ static GLenum gl_stencil_op(enum wined3d_stencil_op op)
         case WINED3D_STENCIL_OP_DECR:
             return GL_DECR_WRAP;
         default:
-            FIXME("Unrecognized stencil op %#x.\n", op);
+            if (!op)
+                WARN("Unrecognized stencil op %#x.\n", op);
+            else
+                FIXME("Unrecognized stencil op %#x.\n", op);
             return GL_KEEP;
     }
 }




More information about the wine-cvs mailing list