From 192f9ab81b3e2c88812f540c7a5c820e3783ff8a Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 25 Jun 2007 09:46:04 -0600 Subject: [PATCH] fix logic error in updating of quad's Z values. Basic depth testing works now --- src/mesa/pipe/softpipe/sp_quad_depth_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/pipe/softpipe/sp_quad_depth_test.c b/src/mesa/pipe/softpipe/sp_quad_depth_test.c index 5229b310164..b72bbac0d4a 100644 --- a/src/mesa/pipe/softpipe/sp_quad_depth_test.c +++ b/src/mesa/pipe/softpipe/sp_quad_depth_test.c @@ -84,7 +84,7 @@ depth_test_quad(struct quad_stage *qs, struct quad_header *quad) /* This is also efficient with sse / spe instructions: */ for (j = 0; j < QUAD_SIZE; j++) { - if (zmask & (1 << j)) { + if (quad->mask & (1 << j)) { zzzz[j] = quad->outputs.depth[j]; } } -- 2.30.2