diff options
author | Brian <[email protected]> | 2007-07-27 09:06:02 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-07-27 09:06:02 -0600 |
commit | e1a19781ddd855540aa65142891b23769e6da0f9 (patch) | |
tree | 80da7c2b73d61116de16619fdbac57320e0cf6ec /src/mesa/pipe/softpipe/sp_prim_setup.c | |
parent | 87555946478f58111013554e5af5c8844f944420 (diff) |
init quad.coverage values to 1.0 in case line AA is enabled so that we see something
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_prim_setup.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_prim_setup.c | 7 |
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 091a2343a9c..bb37bb9a8b1 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 ***/ |