init quad.coverage values to 1.0 in case line AA is enabled so that we see something
authorBrian <brian.paul@tungstengraphics.com>
Fri, 27 Jul 2007 15:06:02 +0000 (09:06 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 27 Jul 2007 15:06:02 +0000 (09:06 -0600)
src/mesa/pipe/softpipe/sp_prim_setup.c

index 091a2343a9cb588862ecc59d982994607324592f..bb37bb9a8b1b2dc6549bf40b77689ad3143406f1 100644 (file)
@@ -766,6 +766,13 @@ setup_line(struct draw_stage *stage, struct prim_header *prim)
    setup->quad.x0 = setup->quad.y0 = -1;
    setup->quad.mask = 0x0;
    setup->quad.prim = PRIM_LINE;
+   /* XXX temporary: set coverage to 1.0 so the line appears
+    * if AA mode happens to be enabled.
+    */
+   setup->quad.coverage[0] =
+   setup->quad.coverage[1] =
+   setup->quad.coverage[2] =
+   setup->quad.coverage[3] = 1.0;
 
    if (dx > dy) {
       /*** X-major line ***/