projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
484a8dc
)
draw: set precalc_flat flag for AA lines too
author
Brian Paul
<brianp@vmware.com>
Tue, 4 Dec 2012 23:32:01 +0000
(16:32 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 5 Dec 2012 15:05:00 +0000
(08:05 -0700)
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>
src/gallium/auxiliary/draw/draw_pipe_validate.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_pipe_validate.c
b/src/gallium/auxiliary/draw/draw_pipe_validate.c
index 27afba5af3d8ae7e8b08ef270508b64f45934185..4b0ed148129f2c3a01c2a1bf4fd918c9db57b4a2 100644
(file)
--- 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) {