summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-07-27 09:06:02 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-07-27 09:06:02 -0600
commite1a19781ddd855540aa65142891b23769e6da0f9 (patch)
tree80da7c2b73d61116de16619fdbac57320e0cf6ec /src
parent87555946478f58111013554e5af5c8844f944420 (diff)
init quad.coverage values to 1.0 in case line AA is enabled so that we see something
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/softpipe/sp_prim_setup.c7
1 files changed, 7 insertions, 0 deletions
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 ***/