fix logic error in stipple_quad() (point/line fragments were getting dropped)
authorBrian <brian.paul@tungstengraphics.com>
Thu, 18 Oct 2007 16:09:01 +0000 (10:09 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 18 Oct 2007 17:41:12 +0000 (11:41 -0600)
src/mesa/pipe/softpipe/sp_quad_stipple.c

index b2658ff..4af5059 100644 (file)
@@ -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);
 }