summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_quad_stipple.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_stipple.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_stipple.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_stipple.c b/src/mesa/pipe/softpipe/sp_quad_stipple.c
index b2658ff158..4af5059d67 100644
--- a/src/mesa/pipe/softpipe/sp_quad_stipple.c
+++ b/src/mesa/pipe/softpipe/sp_quad_stipple.c
@@ -50,10 +50,11 @@ stipple_quad(struct quad_stage *qs, struct quad_header *quad)
quad->mask &= (((stipple0 >> col0) & 0x3) |
(((stipple1 >> col0) & 0x3) << 2));
#endif
-
- if (quad->mask)
- qs->next->run(qs->next, quad);
+ if (!quad->mask)
+ return;
}
+
+ qs->next->run(qs->next, quad);
}