From 1f3dc332f5b5c7fd9defd0cebeee92ff8511cee8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 10 Jun 2017 11:51:40 +0200 Subject: [PATCH] mesa: don't flag _NEW_TRANSFORM for primitive restart MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It's a draw state. Reviewed-by: Nicolai Hähnle Reviewed-by: Brian Paul Reviewed-by: Timothy Arceri --- src/mesa/main/enable.c | 4 ++-- src/mesa/main/varray.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 9ff3c5af530..861d46e23f7 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1016,7 +1016,7 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) goto invalid_enum_error; } if (ctx->Array.PrimitiveRestart != state) { - FLUSH_VERTICES(ctx, _NEW_TRANSFORM); + FLUSH_VERTICES(ctx, 0); ctx->Array.PrimitiveRestart = state; update_derived_primitive_restart_state(ctx); } @@ -1026,7 +1026,7 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) if (!_mesa_is_gles3(ctx) && !ctx->Extensions.ARB_ES3_compatibility) goto invalid_enum_error; if (ctx->Array.PrimitiveRestartFixedIndex != state) { - FLUSH_VERTICES(ctx, _NEW_TRANSFORM); + FLUSH_VERTICES(ctx, 0); ctx->Array.PrimitiveRestartFixedIndex = state; update_derived_primitive_restart_state(ctx); } diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 0d767ad7fcf..a02dbb2fda8 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -1898,7 +1898,7 @@ _mesa_PrimitiveRestartIndex(GLuint index) } if (ctx->Array.RestartIndex != index) { - FLUSH_VERTICES(ctx, _NEW_TRANSFORM); + FLUSH_VERTICES(ctx, 0); ctx->Array.RestartIndex = index; } } -- 2.30.2