From 522173aee4fd496e5b20e38b109979001aa3d01b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 20 Jun 2017 02:20:52 +0200 Subject: [PATCH] mesa: don't flag _NEW_ARRAY for GL_PRIMITIVE_RESTART_NV Reviewed-by: Brian Paul --- src/mesa/main/enable.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.30.2