Browse Source

draw: fix another decompose bug affecting constant interpolated attributes

Previously the first provoking vertex convention would only be used if
flatshading were enabled. No matter how I look at it that cannot be possibly
correct. Maybe the code getting used was somewhat simpler that way at a time
where there weren't constant interpolated attributes, only flatshading...
(Note that all other places including the decomposition macros already do
the same.)

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
tags/10.5-branchpoint
Roland Scheidegger 11 years ago
parent
commit
db3dfcfe90
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/gallium/auxiliary/draw/draw_pt_decompose.h

+ 1
- 2
src/gallium/auxiliary/draw/draw_pt_decompose.h View File

const boolean quads_flatshade_last = \ const boolean quads_flatshade_last = \
draw->quads_always_flatshade_last; \ draw->quads_always_flatshade_last; \
const boolean last_vertex_last = \ const boolean last_vertex_last = \
!(draw->rasterizer->flatshade && \
draw->rasterizer->flatshade_first);
!draw->rasterizer->flatshade_first;


#include "draw_decompose_tmp.h" #include "draw_decompose_tmp.h"

Loading…
Cancel
Save