summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-12-04 16:32:01 -0700
committerAndreas Boll <andreas.boll.dev@gmail.com>2013-02-13 18:38:42 +0100
commit9ae069dbbd6814fc86ad371e439b7750b938408a (patch)
tree4908932dfdb69e0fb43008becfdb6e6a56c1914c
parent4a0423e1bd2ba287f7c0599d1a9b80d9206f14cb (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 <jfonseca@vmware.com> (cherry picked from commit d2c7fe5389e40871a7e339dc0ecaa7f570f851ed)
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_validate.c1
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 27afba5af3..4b0ed14812 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) {