From: Timothy Arceri Date: Wed, 7 Jun 2017 03:58:34 +0000 (+1000) Subject: mesa: remove redundant _ae_invalidate_state() call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b57bc7473bf1b14dbda0e3d27aef4260f9ee68f4;p=mesa.git mesa: remove redundant _ae_invalidate_state() call 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 --- 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);