vbo: call UpdateState directly when notifying a driver about _NEW_ARRAY
[mesa.git] / src / mesa / vbo / vbo_exec.h
index 5cdf5ced912c1b9bd5fa2ecafcb21bca71db6561..be9f3d78d2b0a045e0c5adeefd9c72794cef80a5 100644 (file)
@@ -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;
    }
 }