summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_quad_depth_test.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-06-25 09:45:10 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-06-25 09:45:10 -0600
commit363e6020429f31d6b923fcd05407d7f3e36bc9ba (patch)
treef5fc1e1ca389155b2c31a5d5a6e2f9bf497211f6 /src/mesa/pipe/softpipe/sp_quad_depth_test.c
parent0717daf4f9861647ae486e0231a56df529630c76 (diff)
clean-ups
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_depth_test.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_depth_test.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_depth_test.c b/src/mesa/pipe/softpipe/sp_quad_depth_test.c
index 9104b943ec..5229b31016 100644
--- a/src/mesa/pipe/softpipe/sp_quad_depth_test.c
+++ b/src/mesa/pipe/softpipe/sp_quad_depth_test.c
@@ -44,14 +44,9 @@ depth_test_quad(struct quad_stage *qs, struct quad_header *quad)
GLfloat zzzz[QUAD_SIZE]; /**< Z for four pixels in quad */
GLuint zmask = 0;
-#if 0
assert(sps); /* shouldn't get here if there's no zbuffer */
-#else
- if (!sps)
- return;
-#endif
- /* XXX get zquad from zbuffer */
+ /* get zquad from zbuffer */
sps->read_quad_z(sps, quad->x0, quad->y0, zzzz);
switch (softpipe->depth_test.func) {
@@ -94,7 +89,7 @@ depth_test_quad(struct quad_stage *qs, struct quad_header *quad)
}
}
- /* XXX write updated zquad to zbuffer */
+ /* write updated zquad to zbuffer */
sps->write_quad_z(sps, quad->x0, quad->y0, zzzz);
}