diff options
author | Marek Olšák <[email protected]> | 2012-04-22 19:21:45 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-04-23 22:58:02 +0200 |
commit | 802ca81e260f6ccfe2cf492e96b2887131bed09c (patch) | |
tree | e40ad385a6676ca5cd4fc4e305307839a58625eb /src/mesa/vbo/vbo_exec.h | |
parent | 6fc565a94bc0de7ad617c28db7b8b6dfa4102d49 (diff) |
vbo: call UpdateState directly when notifying a driver about _NEW_ARRAY
Core Mesa doesn't need to know about this.
This also removes the hack in recalculate_input_bindings.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_exec.h')
-rw-r--r-- | src/mesa/vbo/vbo_exec.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_exec.h b/src/mesa/vbo/vbo_exec.h index 5cdf5ced912..be9f3d78d2b 100644 --- a/src/mesa/vbo/vbo_exec.h +++ b/src/mesa/vbo/vbo_exec.h @@ -189,7 +189,8 @@ static inline void vbo_draw_method(struct vbo_exec_context *exec, enum draw_method method) { if (exec->last_draw_method != method) { - exec->ctx->NewState |= _NEW_ARRAY; + struct gl_context *ctx = exec->ctx; + ctx->Driver.UpdateState(ctx, _NEW_ARRAY); exec->last_draw_method = method; } } |