From: Brian Paul Date: Thu, 4 Jun 2009 01:03:27 +0000 (-0600) Subject: tnl: fix first provoking vertex case for unfilled triangles X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b875b732fef0f2e60c53ee7aa60b5988ca37cc5;p=mesa.git tnl: fix first provoking vertex case for unfilled triangles --- diff --git a/src/mesa/tnl/t_vb_rendertmp.h b/src/mesa/tnl/t_vb_rendertmp.h index 05d13090642..7f7303367b7 100644 --- a/src/mesa/tnl/t_vb_rendertmp.h +++ b/src/mesa/tnl/t_vb_rendertmp.h @@ -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