summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_quad_stipple.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-18 10:09:01 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-18 11:41:12 -0600
commit376fb1c23efd437109da88cd2e53fca9d1c77bf2 (patch)
treed8fdb28b6f8fe62284210d1f741a730f72ec8225 /src/mesa/pipe/softpipe/sp_quad_stipple.c
parenta22fafbb4b6b772c531651ada53661749cd1f29e (diff)
fix logic error in stipple_quad() (point/line fragments were getting dropped)
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);
}