tnl: fix first provoking vertex case for unfilled triangles
authorBrian Paul <brianp@vmware.com>
Thu, 4 Jun 2009 01:03:27 +0000 (19:03 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 4 Jun 2009 01:03:27 +0000 (19:03 -0600)
src/mesa/tnl/t_vb_rendertmp.h

index 05d130906424c72a40c3b2e23ac7cc80cca66778..7f7303367b7b1a0430a943e33f74b38576a0b77f 100644 (file)
@@ -174,7 +174,7 @@ static void TAG(render_triangles)( GLcontext *ctx,
          if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
             RENDER_TRI( ELT(j-2), ELT(j-1), ELT(j) );
          else
-            RENDER_TRI( ELT(j), ELT(j-2), ELT(j-1) );
+            RENDER_TRI( ELT(j-1), ELT(j), ELT(j-2) );
       }
    } else {
       for (j=start+2; j<count; j+=3) {