From e6efb900e7a7601797b2e8263388fe72f6820e9b Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 29 May 2013 08:31:54 -0700 Subject: mesa: Delete the ctx->Array._RestartIndex derived state. It's incorrect and isn't used any longer. v2: Actually flush vertices/flag _NEW_TRANSFORM on RestartIndex change. NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt Reviewed-by: Ian Romanick --- src/mesa/main/varray.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/varray.c') diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index dff00700430..db0945e3095 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -1109,10 +1109,9 @@ _mesa_PrimitiveRestartIndex(GLuint index) return; } - ctx->Array.RestartIndex = index; - if (ctx->Array.PrimitiveRestart && ctx->Array._RestartIndex != index) { + if (ctx->Array.RestartIndex != index) { FLUSH_VERTICES(ctx, _NEW_TRANSFORM); - ctx->Array._RestartIndex = index; + ctx->Array.RestartIndex = index; } } -- cgit v1.2.3