fix logic error in updating of quad's Z values. Basic depth testing works now
authorBrian <brian.paul@tungstengraphics.com>
Mon, 25 Jun 2007 15:46:04 +0000 (09:46 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 25 Jun 2007 15:46:04 +0000 (09:46 -0600)
src/mesa/pipe/softpipe/sp_quad_depth_test.c

index 5229b31..b72bbac 100644 (file)
@@ -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];
         }
       }