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

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-05-25 12:04:06 +02:00 committed by Alexandre Julliard
parent ec248a9e38
commit 0597842218
1 changed files with 4 additions and 1 deletions

View File

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