diff options
author | Marek Olšák <[email protected]> | 2011-06-12 23:21:41 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-06-13 17:03:56 +0200 |
commit | 317247390a3af61f2913e4446959975c9ab2478a (patch) | |
tree | 27b3e4d390b4436b32a500d3b1cd6bbe0e01a56f /src/mesa | |
parent | b19d86701eb6b04a0b7bcf43af06c4ce4fc30299 (diff) |
st/mesa: rebind vertex arrays if _NEW_BUFFER_OBJECT is dirty
This fixes piglit/vbo-bufferdata. It's a regression in 7.11.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 56955d357b1..dd26db2f678 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -650,7 +650,8 @@ st_draw_vbo(struct gl_context *ctx, struct pipe_draw_info info; unsigned i, num_instances = 1; GLboolean new_array = - st->dirty.st && (st->dirty.mesa & (_NEW_ARRAY | _NEW_PROGRAM)) != 0; + st->dirty.st && + (st->dirty.mesa & (_NEW_ARRAY | _NEW_PROGRAM | _NEW_BUFFER_OBJECT)) != 0; /* Mesa core state should have been validated already */ assert(ctx->NewState == 0x0); |