diff options
author | Brian Paul <[email protected]> | 2012-12-04 16:32:01 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-12-05 08:05:00 -0700 |
commit | d2c7fe5389e40871a7e339dc0ecaa7f570f851ed (patch) | |
tree | 6d982d4c85cde763291169ed1391929b08024a5e /src/gallium/auxiliary | |
parent | 484a8dcfa8c8b91b8e99174b5e4953264f32789e (diff) |
draw: set precalc_flat flag for AA lines too
Fixes flat shading for AA lines. demos/src/trivial/line-smooth is a
test case which hits this.
Note: This is a candidate for the stable branches.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_validate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_validate.c b/src/gallium/auxiliary/draw/draw_pipe_validate.c index 27afba5af3d..4b0ed148129 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_validate.c +++ b/src/gallium/auxiliary/draw/draw_pipe_validate.c @@ -195,6 +195,7 @@ static struct draw_stage *validate_pipeline( struct draw_stage *stage ) if (rast->line_smooth && draw->pipeline.aaline) { draw->pipeline.aaline->next = next; next = draw->pipeline.aaline; + precalc_flat = TRUE; } if (rast->point_smooth && draw->pipeline.aapoint) { |