From 1f1aa0c20cb7dd0ae14b01f89aaa99cc6eebf919 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 3 Jun 2009 17:28:31 -0600 Subject: [PATCH] tnl: fix first provoking vertex bug for line loops --- src/mesa/tnl/t_vb_rendertmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/tnl/t_vb_rendertmp.h b/src/mesa/tnl/t_vb_rendertmp.h index f0da0cdf0de..05d13090642 100644 --- a/src/mesa/tnl/t_vb_rendertmp.h +++ b/src/mesa/tnl/t_vb_rendertmp.h @@ -148,7 +148,7 @@ static void TAG(render_line_loop)( GLcontext *ctx, if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT) RENDER_LINE( ELT(count-1), ELT(start) ); else - RENDER_LINE( ELT(count), ELT(start-1) ); /* XXX check this one */ + RENDER_LINE( ELT(start), ELT(count-1) ); } } -- 2.30.2