diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-08-23 18:54:51 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-08-23 18:54:51 -0600 |
commit | 30236573dadd83714220b72b0c04f1bbce69fbd6 (patch) | |
tree | 314202b9de409ee4fb6b6108a801181b292cbae3 /src/mesa/pipe/draw/draw_flatshade.c | |
parent | c998ce1df09f2d9dc834ebdf9484673d8084db34 (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_flatshade.c')
-rw-r--r-- | src/mesa/pipe/draw/draw_flatshade.c | 1 |
1 files changed, 1 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]; |