Need to copy header->edgeflags to tmp when creating new prim_header.
authorBrian <brian.paul@tungstengraphics.com>
Fri, 24 Aug 2007 00:54:51 +0000 (18:54 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 24 Aug 2007 00:54:51 +0000 (18:54 -0600)
Edge flags were random/undefined otherwise.

src/mesa/pipe/draw/draw_flatshade.c
src/mesa/pipe/draw/draw_offset.c
src/mesa/pipe/draw/draw_twoside.c

index d8db1f748cceb3e187a1736db7eec5af30b2312c..5a23e10c0305a83279219a85d1c159229db4cc7f 100644 (file)
@@ -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];
index 83c9b163eb115b1f51cbc4eee232e982db7f376b..4f653e8c54269b669956e3ad16a430f71163c5e2 100644 (file)
@@ -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);
index 4fd87786f844daff91c28c1ec8b20d27408e0c61..5a7697d5f81a5310e703dbc1df12f7cdb43bd915 100644 (file)
@@ -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);