diff options
author | Timothy Arceri <[email protected]> | 2017-06-07 14:02:03 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-06-09 09:13:46 +1000 |
commit | 87cb44d9b0eb9976f3dc2dc91de9f3d7c36004c6 (patch) | |
tree | 833348cf803ef5f4439ef9bf1c78070a445965dd /src/mesa/vbo | |
parent | b57bc7473bf1b14dbda0e3d27aef4260f9ee68f4 (diff) |
mesa: rework _ae_invalidate_state() so that it just sets a dirty flag
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_context.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/vbo/vbo_context.h b/src/mesa/vbo/vbo_context.h index 0418643f8f4..2a762c85c63 100644 --- a/src/mesa/vbo/vbo_context.h +++ b/src/mesa/vbo/vbo_context.h @@ -98,14 +98,15 @@ vbo_exec_invalidate_state(struct gl_context *ctx) struct vbo_context *vbo = vbo_context(ctx); struct vbo_exec_context *exec = &vbo->exec; - if (!exec->validating && ctx->NewState & (_NEW_PROGRAM | _NEW_ARRAY)) { - exec->array.recalculate_inputs = GL_TRUE; + if (ctx->NewState & (_NEW_PROGRAM | _NEW_ARRAY)) { + if (!exec->validating) + exec->array.recalculate_inputs = GL_TRUE; + + _ae_invalidate_state(ctx); } if (ctx->NewState & _NEW_EVAL) exec->eval.recalculate_maps = GL_TRUE; - - _ae_invalidate_state(ctx, ctx->NewState); } |