summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-06-03 19:52:32 -0600
committerBrian Paul <[email protected]>2009-06-03 19:52:32 -0600
commitab6508e3993afa35de1472fe8a847427c1749efe (patch)
tree31dedceb80b5f0202c4fa16a129fd433b47909bc
parent8b875b732fef0f2e60c53ee7aa60b5988ca37cc5 (diff)
mesa: fix parity error for tri strips with 1st provoking vertex
-rw-r--r--src/mesa/tnl/t_vb_rendertmp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vb_rendertmp.h b/src/mesa/tnl/t_vb_rendertmp.h
index 7f7303367b7..29d2fa852c4 100644
--- a/src/mesa/tnl/t_vb_rendertmp.h
+++ b/src/mesa/tnl/t_vb_rendertmp.h
@@ -226,7 +226,7 @@ static void TAG(render_tri_strip)( GLcontext *ctx,
if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
RENDER_TRI( ELT(j-2+parity), ELT(j-1-parity), ELT(j) );
else
- RENDER_TRI( ELT(j), ELT(j-2+parity), ELT(j-1-parity) );
+ RENDER_TRI( ELT(j-1+parity), ELT(j-parity), ELT(j-2) );
}
}
POSTFIX;