From e1a19781ddd855540aa65142891b23769e6da0f9 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 27 Jul 2007 09:06:02 -0600 Subject: init quad.coverage values to 1.0 in case line AA is enabled so that we see something --- src/mesa/pipe/softpipe/sp_prim_setup.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/pipe/softpipe/sp_prim_setup.c') diff --git a/src/mesa/pipe/softpipe/sp_prim_setup.c b/src/mesa/pipe/softpipe/sp_prim_setup.c index 091a2343a9..bb37bb9a8b 100644 --- a/src/mesa/pipe/softpipe/sp_prim_setup.c +++ b/src/mesa/pipe/softpipe/sp_prim_setup.c @@ -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 ***/ -- cgit v1.2.3