diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-10-22 11:38:40 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-10-22 11:38:40 -0600 |
commit | 8d244159870d6f8d67b844e3c84b0d32a387e59c (patch) | |
tree | 00b55020b6389ba0cd7cc185ddbe98e49e9bc97a /src/mesa | |
parent | e3444deec5a369e4ffabfeb9f6c257dd6b8e5a30 (diff) |
tweak point corners to pass conform test
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/pipe/draw/draw_wide_prims.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mesa/pipe/draw/draw_wide_prims.c b/src/mesa/pipe/draw/draw_wide_prims.c index 8e1c4a8ae7..e7e90fabae 100644 --- a/src/mesa/pipe/draw/draw_wide_prims.c +++ b/src/mesa/pipe/draw/draw_wide_prims.c @@ -125,6 +125,7 @@ static void wide_point( struct draw_stage *stage, { const struct wide_stage *wide = wide_stage(stage); float half_size = wide->half_point_size; + float left_adj, right_adj; struct prim_header tri; @@ -139,16 +140,19 @@ static void wide_point( struct draw_stage *stage, float *pos2 = v2->data[0]; float *pos3 = v3->data[0]; - pos0[0] -= half_size; + left_adj = -half_size + 0.25; + right_adj = half_size + 0.25; + + pos0[0] += left_adj; pos0[1] -= half_size; - pos1[0] -= half_size; + pos1[0] += left_adj; pos1[1] += half_size; - pos2[0] += half_size; + pos2[0] += right_adj; pos2[1] -= half_size; - pos3[0] += half_size; + pos3[0] += right_adj; pos3[1] += half_size; tri.det = header->det; /* only the sign matters */ |