summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_twoside.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-23 18:54:51 -0600
committerBrian <[email protected]>2007-08-23 18:54:51 -0600
commit30236573dadd83714220b72b0c04f1bbce69fbd6 (patch)
tree314202b9de409ee4fb6b6108a801181b292cbae3 /src/mesa/pipe/draw/draw_twoside.c
parentc998ce1df09f2d9dc834ebdf9484673d8084db34 (diff)
Need to copy header->edgeflags to tmp when creating new prim_header.
Edge flags were random/undefined otherwise.
Diffstat (limited to 'src/mesa/pipe/draw/draw_twoside.c')
-rw-r--r--src/mesa/pipe/draw/draw_twoside.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_twoside.c b/src/mesa/pipe/draw/draw_twoside.c
index 4fd87786f84..5a7697d5f81 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);