[PATCH 5/5] wined3d: Only warn about 0 stencil ops in gl_stencil_op().

Henri Verbeet hverbeet at codeweavers.com
Thu May 25 05:04:06 CDT 2017


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 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;
     }
 }
-- 
2.1.4




More information about the wine-patches mailing list