summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_stencil.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-10-02 23:24:04 +0000
committerBrian Paul <[email protected]>2002-10-02 23:24:04 +0000
commitbe99e845bd7979fe46d38d9b294c1ba0a0aa95b8 (patch)
tree894e2807945dacf81c906a749a17534e62825489 /src/mesa/swrast/s_stencil.c
parent0adce5d0ed20910a41c2115e4dd0173fdcc53cdb (diff)
finished up GL_EXT_stencil_two_side
Diffstat (limited to 'src/mesa/swrast/s_stencil.c')
-rw-r--r--src/mesa/swrast/s_stencil.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c
index 4ec64ee8481..90ff06c951d 100644
--- a/src/mesa/swrast/s_stencil.c
+++ b/src/mesa/swrast/s_stencil.c
@@ -1,4 +1,4 @@
-/* $Id: s_stencil.c,v 1.26 2002/09/06 02:56:09 brianp Exp $ */
+/* $Id: s_stencil.c,v 1.27 2002/10/02 23:24:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1006,12 +1006,14 @@ stencil_and_ztest_pixels( GLcontext *ctx, struct sw_span *span, GLuint face )
* GL_FALSE = all fragments failed.
*/
GLboolean
-_mesa_stencil_and_ztest_span(GLcontext *ctx, struct sw_span *span, GLuint face)
+_mesa_stencil_and_ztest_span(GLcontext *ctx, struct sw_span *span)
{
+ /* span->facing can only be non-zero if using two-sided stencil */
+ ASSERT(ctx->Stencil.TestTwoSide || span->facing == 0);
if (span->arrayMask & SPAN_XY)
- return stencil_and_ztest_pixels(ctx, span, face);
+ return stencil_and_ztest_pixels(ctx, span, span->facing);
else
- return stencil_and_ztest_span(ctx, span, face);
+ return stencil_and_ztest_span(ctx, span, span->facing);
}