mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
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 d2c7fe5389)
This commit is contained in:
parent
4a0423e1bd
commit
9ae069dbbd
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue