summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-18 10:09:01 -0600
committerBrian <[email protected]>2007-10-18 11:41:12 -0600
commit376fb1c23efd437109da88cd2e53fca9d1c77bf2 (patch)
treed8fdb28b6f8fe62284210d1f741a730f72ec8225 /src
parenta22fafbb4b6b772c531651ada53661749cd1f29e (diff)
fix logic error in stipple_quad() (point/line fragments were getting dropped)
Diffstat (limited to 'src')
-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 b2658ff158b..4af5059d67e 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);
}