diff options
author | Marek Olšák <[email protected]> | 2017-06-20 02:20:52 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-23 19:50:20 +0200 |
commit | 522173aee4fd496e5b20e38b109979001aa3d01b (patch) | |
tree | 41d36d55aaf74bab2994df5bbf4db208ddf9c109 | |
parent | c7688d2de5bb0861965e6e7b76a396ab6eec253f (diff) |
mesa: don't flag _NEW_ARRAY for GL_PRIMITIVE_RESTART_NV
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r-- | src/mesa/main/enable.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |