diff options
author | Roland Scheidegger <[email protected]> | 2016-01-07 19:38:15 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2016-01-08 00:34:13 +0100 |
commit | 9db7309595309ff0835c701108827ffc8c906751 (patch) | |
tree | 26cb7f033991d3e3673f2b2aa1d5e51189ca4888 | |
parent | 64da11f05294551a248f395db168f4941f969b45 (diff) |
draw: initialize prim header flags when clipping lines
Otherwise, clipped lines would have undefined stippling reset bit if line
stippling is enabled.
(Untested, and I just assume copying over the bits from the original line
is actually the right thing to do.)
Reviewed-by: Jose Fonseca <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_clip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_clip.c b/src/gallium/auxiliary/draw/draw_pipe_clip.c index 67d8ecaa35f..2d92d650ab6 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_clip.c +++ b/src/gallium/auxiliary/draw/draw_pipe_clip.c @@ -611,6 +611,8 @@ do_clip_line(struct draw_stage *stage, struct prim_header newprim; int viewport_index; + newprim.flags = header->flags; + if (stage->draw->rasterizer->flatshade_first) { prov_vertex = v0; } |