summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-23 18:54:51 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-23 18:54:51 -0600
commit30236573dadd83714220b72b0c04f1bbce69fbd6 (patch)
tree314202b9de409ee4fb6b6108a801181b292cbae3 /src
parentc998ce1df09f2d9dc834ebdf9484673d8084db34 (diff)
Need to copy header->edgeflags to tmp when creating new prim_header.
Edge flags were random/undefined otherwise.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/draw/draw_flatshade.c1
-rw-r--r--src/mesa/pipe/draw/draw_offset.c1
-rw-r--r--src/mesa/pipe/draw/draw_twoside.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_flatshade.c b/src/mesa/pipe/draw/draw_flatshade.c
index d8db1f748c..5a23e10c03 100644
--- a/src/mesa/pipe/draw/draw_flatshade.c
+++ b/src/mesa/pipe/draw/draw_flatshade.c
@@ -89,6 +89,7 @@ static void flatshade_tri( struct draw_stage *stage,
struct prim_header tmp;
tmp.det = header->det;
+ tmp.edgeflags = header->edgeflags;
tmp.v[0] = dup_vert(stage, header->v[0], 0);
tmp.v[1] = dup_vert(stage, header->v[1], 1);
tmp.v[2] = header->v[2];
diff --git a/src/mesa/pipe/draw/draw_offset.c b/src/mesa/pipe/draw/draw_offset.c
index 83c9b163eb..4f653e8c54 100644
--- a/src/mesa/pipe/draw/draw_offset.c
+++ b/src/mesa/pipe/draw/draw_offset.c
@@ -115,6 +115,7 @@ static void offset_tri( struct draw_stage *stage,
struct prim_header tmp;
tmp.det = header->det;
+ tmp.edgeflags = header->edgeflags;
tmp.v[0] = dup_vert(stage, header->v[0], 0);
tmp.v[1] = dup_vert(stage, header->v[1], 1);
tmp.v[2] = dup_vert(stage, header->v[2], 2);
diff --git a/src/mesa/pipe/draw/draw_twoside.c b/src/mesa/pipe/draw/draw_twoside.c
index 4fd87786f8..5a7697d5f8 100644
--- a/src/mesa/pipe/draw/draw_twoside.c
+++ b/src/mesa/pipe/draw/draw_twoside.c
@@ -103,6 +103,7 @@ static void twoside_tri( struct draw_stage *stage,
struct prim_header tmp;
tmp.det = header->det;
+ tmp.edgeflags = header->edgeflags;
/* copy back colors to front color slots */
tmp.v[0] = copy_bfc(twoside, header->v[0], 0);
tmp.v[1] = copy_bfc(twoside, header->v[1], 1);