aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-04-18 14:57:00 +0000
committerBrian Paul <[email protected]>2002-04-18 14:57:00 +0000
commit36c3df78f4592443de7c065b6d539f4c2914d870 (patch)
treeccab914e4c863d08d2b22c2475500b3b65897470 /src/mesa/swrast
parent55d9ee83b4c29e8f7c373ee6326bbb4f77402bee (diff)
restored writeAll = GL_FALSE test/assignment
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_depth.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_depth.c b/src/mesa/swrast/s_depth.c
index 87841dde68b..6b1646b7a04 100644
--- a/src/mesa/swrast/s_depth.c
+++ b/src/mesa/swrast/s_depth.c
@@ -1,4 +1,4 @@
-/* $Id: s_depth.c,v 1.20 2002/04/12 15:39:59 brianp Exp $ */
+/* $Id: s_depth.c,v 1.21 2002/04/18 14:57:00 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -567,7 +567,11 @@ depth_test_span( GLcontext *ctx, struct sw_span *span)
GLuint *zptr = (GLuint *) Z_ADDRESS32(ctx, x, y);
passed = depth_test_span32(ctx, n, zptr, span->zArray, span->mask);
}
-#if 0
+#if 1
+ if (passed < span->end) {
+ span->writeAll = GL_FALSE;
+ }
+#else
/* this causes a glDrawPixels(GL_DEPTH_COMPONENT) conformance failure */
if (passed < span->end) {
span->writeAll = GL_FALSE;