mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
Need to copy header->edgeflags to tmp when creating new prim_header.
Edge flags were random/undefined otherwise.
This commit is contained in:
parent
c998ce1df0
commit
30236573da
3 changed files with 3 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue