From: Marek Olšák Date: Tue, 20 Jun 2017 00:20:52 +0000 (+0200) Subject: mesa: don't flag _NEW_ARRAY for GL_PRIMITIVE_RESTART_NV X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=522173aee4fd496e5b20e38b109979001aa3d01b;p=mesa.git mesa: don't flag _NEW_ARRAY for GL_PRIMITIVE_RESTART_NV Reviewed-by: Brian Paul --- diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index f1a9c7b7db6..e1293f9bf1e 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -66,6 +66,7 @@ client_state(struct gl_context *ctx, GLenum cap, GLboolean state) struct gl_vertex_array_object *vao = ctx->Array.VAO; GLbitfield64 flag; GLboolean *var; + uint64_t new_state = _NEW_ARRAY; switch (cap) { case GL_VERTEX_ARRAY: @@ -115,6 +116,7 @@ client_state(struct gl_context *ctx, GLenum cap, GLboolean state) } var = &ctx->Array.PrimitiveRestart; flag = 0; + new_state = 0; /* primitive restart is not a vertex array state */ break; default: @@ -124,7 +126,7 @@ client_state(struct gl_context *ctx, GLenum cap, GLboolean state) if (*var == state) return; - FLUSH_VERTICES(ctx, _NEW_ARRAY); + FLUSH_VERTICES(ctx, new_state); *var = state;