summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/enable.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-05-29 08:31:54 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-05-29 14:22:17 -0700
commite6efb900e7a7601797b2e8263388fe72f6820e9b (patch)
tree17853884e9a7271b17ce5512923f932d04728f34 /src/mesa/main/enable.c
parent51c0ffacb24d1b4e48f8f53dc8e191b64fbd679a (diff)
downloadexternal_mesa3d-e6efb900e7a7601797b2e8263388fe72f6820e9b.zip
external_mesa3d-e6efb900e7a7601797b2e8263388fe72f6820e9b.tar.gz
external_mesa3d-e6efb900e7a7601797b2e8263388fe72f6820e9b.tar.bz2
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 <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r--src/mesa/main/enable.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 016e432..fdde24e 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -53,11 +53,6 @@ update_derived_primitive_restart_state(struct gl_context *ctx)
{
/* Update derived primitive restart state.
*/
- if (ctx->Array.PrimitiveRestart)
- ctx->Array._RestartIndex = ctx->Array.RestartIndex;
- else
- ctx->Array._RestartIndex = ~0;
-
ctx->Array._PrimitiveRestart = ctx->Array.PrimitiveRestart
|| ctx->Array.PrimitiveRestartFixedIndex;
}