projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e3444de
)
tweak point corners to pass conform test
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 22 Oct 2007 17:38:40 +0000
(11:38 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Mon, 22 Oct 2007 17:38:40 +0000
(11:38 -0600)
src/mesa/pipe/draw/draw_wide_prims.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/draw/draw_wide_prims.c
b/src/mesa/pipe/draw/draw_wide_prims.c
index 8e1c4a8ae7c3f90af49956f7a963473ae64d2065..e7e90fabae4aef4fca6f5f7f7547262eb9ad994d 100644
(file)
--- 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;
{
const struct wide_stage *wide = wide_stage(stage);
float half_size = wide->half_point_size;
+ float left_adj, right_adj;
struct prim_header tri;
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];
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;
pos0[1] -= half_size;
- pos1[0]
-= half_size
;
+ pos1[0]
+= left_adj
;
pos1[1] += half_size;
pos1[1] += half_size;
- pos2[0] +=
half_size
;
+ pos2[0] +=
right_adj
;
pos2[1] -= half_size;
pos2[1] -= half_size;
- pos3[0] +=
half_size
;
+ pos3[0] +=
right_adj
;
pos3[1] += half_size;
tri.det = header->det; /* only the sign matters */
pos3[1] += half_size;
tri.det = header->det; /* only the sign matters */