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

Alexandre Julliard julliard at winehq.org
Thu May 25 14:42:16 CDT 2017


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

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>

---

 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 df5a3b1..a59e913 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