summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-02-06 03:22:47 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-02-06 03:22:47 +0000
commitbcb148de9201c7f90a68c7c46434e7ebf7204000 (patch)
tree1093223cb4c179b913312c123c273b98c6df0d70
parent2784dadafc82595e885fa3158ac8bdfb68c362a5 (diff)
added an assertion, fix typo
-rw-r--r--src/mesa/swrast/s_span.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index 28b6718905..6f76fd8b59 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -1,4 +1,4 @@
-/* $Id: s_span.c,v 1.31 2002/02/04 15:59:29 brianp Exp $ */
+/* $Id: s_span.c,v 1.32 2002/02/06 03:22:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -26,7 +26,7 @@
/**
- * \file vpstate.c
+ * \file swrast/s_span.c
* \brief Span processing functions used by all rasterization functions.
* This is where all the per-fragment tests are performed
* \author Brian Paul
@@ -801,11 +801,15 @@ _mesa_write_rgba_span( GLcontext *ctx, struct sw_span *span,
ASSERT(span->end <= MAX_WIDTH);
ASSERT((span->interpMask & span->arrayMask) == 0);
ASSERT((span->interpMask | span->arrayMask) & SPAN_RGBA);
+#ifdef DEBUG
if (ctx->Fog.Enabled)
ASSERT((span->interpMask | span->arrayMask) & SPAN_FOG);
+ if (ctx->Depth.Test)
+ ASSERT((span->interpMask | span->arrayMask) & SPAN_Z);
+#endif
/*
- printf("%s() interp 0x%x array 0x%x p=0x%x\n", __FUNCTION__, span->interpMask, span->arrayMask, primitive);
+ printf("%s() interp 0x%x array 0x%x p=0x%x\n", __FUNCTION__, span->interpMask, span->arrayMask, primitive);
*/
if (span->arrayMask & SPAN_MASK) {