summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_quad_occlusion.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_occlusion.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_occlusion.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_occlusion.c b/src/mesa/pipe/softpipe/sp_quad_occlusion.c
index 028d30c92f..d65fdbdab7 100644
--- a/src/mesa/pipe/softpipe/sp_quad_occlusion.c
+++ b/src/mesa/pipe/softpipe/sp_quad_occlusion.c
@@ -52,15 +52,13 @@ occlusion_count_quad(struct quad_stage *qs, struct quad_header *quad)
occ->count += (quad->mask >> 2) & 1;
occ->count += (quad->mask >> 3) & 1;
- if (quad->mask)
- qs->next->run(qs->next, quad);
+ qs->next->run(qs->next, quad);
}
static void occlusion_begin(struct quad_stage *qs)
{
- if (qs->next)
- qs->next->begin(qs->next);
+ qs->next->begin(qs->next);
}