mesa: remove redundant _ae_invalidate_state() call
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 7 Jun 2017 03:58:34 +0000 (13:58 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 8 Jun 2017 23:13:46 +0000 (09:13 +1000)
The FLUSH_VERTICES(ctx, _NEW_ARRAY) above this will already cause
this to be called.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/enable.c

index 0e07f4c3b9a403c55078b6f0d520a11e8a605d51..52c791587ef41ed5b5ade0e2c4360c76d777d0b6 100644 (file)
@@ -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);