draw: use flatfirst variable
authorBrian Paul <brianp@vmware.com>
Fri, 19 Jun 2009 05:00:37 +0000 (23:00 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 19 Jun 2009 05:00:37 +0000 (23:00 -0600)
src/gallium/auxiliary/draw/draw_pt_decompose.h

index 8e1d60e9ce350da6fba5be55bf1149104a2ed667..4ca5b520204673b252c126584c09dd8e2beb6136 100644 (file)
@@ -47,7 +47,7 @@ static void FUNC( ARGS,
 
    case PIPE_PRIM_TRIANGLES:
       for (i = 0; i+2 < count; i += 3) {
-         if (draw->rasterizer->flatshade_first) {
+         if (flatfirst) {
             /* put provoking vertex in last pos for clipper */
             TRIANGLE( DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL,
                       (i + 1),