summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_flatshade.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_flatshade.c b/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
index cf19b37d18a..4d62dbd7f9e 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_flatshade.c
@@ -145,9 +145,6 @@ static void flatshade_tri_2( struct draw_stage *stage,
}
-
-
-
/**
* Flatshade line. Required for clipping.
*/
@@ -156,6 +153,9 @@ static void flatshade_line_0( struct draw_stage *stage,
{
struct prim_header tmp;
+ tmp.det = header->det;
+ tmp.flags = header->flags;
+ tmp.pad = header->pad;
tmp.v[0] = header->v[0];
tmp.v[1] = dup_vert(stage, header->v[1], 0);
@@ -169,6 +169,9 @@ static void flatshade_line_1( struct draw_stage *stage,
{
struct prim_header tmp;
+ tmp.det = header->det;
+ tmp.flags = header->flags;
+ tmp.pad = header->pad;
tmp.v[0] = dup_vert(stage, header->v[0], 0);
tmp.v[1] = header->v[1];