From b57bc7473bf1b14dbda0e3d27aef4260f9ee68f4 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 7 Jun 2017 13:58:34 +1000 Subject: [PATCH] mesa: remove redundant _ae_invalidate_state() call MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The FLUSH_VERTICES(ctx, _NEW_ARRAY) above this will already cause this to be called. Reviewed-by: Samuel Pitoiset Reviewed-by: Brian Paul Reviewed-by: Marek Olšák --- src/mesa/main/enable.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 0e07f4c3b9a..52c791587ef 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -37,7 +37,6 @@ #include "light.h" #include "mtypes.h" #include "enums.h" -#include "api_arrayelt.h" #include "texstate.h" @@ -126,8 +125,6 @@ client_state(struct gl_context *ctx, GLenum cap, GLboolean state) FLUSH_VERTICES(ctx, _NEW_ARRAY); - _ae_invalidate_state(ctx, _NEW_ARRAY); - *var = state; update_derived_primitive_restart_state(ctx); -- 2.30.2