projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55d9ee8
)
restored writeAll = GL_FALSE test/assignment
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 18 Apr 2002 14:57:00 +0000
(14:57 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 18 Apr 2002 14:57:00 +0000
(14:57 +0000)
src/mesa/swrast/s_depth.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_depth.c
b/src/mesa/swrast/s_depth.c
index 87841dde68bedb419a059b6aa9b3d4cc428a6d97..6b1646b7a04aba4cd09f6ed5cbb3c055baca2a94 100644
(file)
--- a/
src/mesa/swrast/s_depth.c
+++ b/
src/mesa/swrast/s_depth.c
@@
-1,4
+1,4
@@
-/* $Id: s_depth.c,v 1.2
0 2002/04/12 15:39:59
brianp Exp $ */
+/* $Id: s_depth.c,v 1.2
1 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;