diff options
author | Brian <[email protected]> | 2007-10-15 13:05:15 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-15 13:05:15 -0600 |
commit | 8630e5edb36f00de30117d56c1691363d471c0cc (patch) | |
tree | 17ce35d4d14f1b26be00bbcbe4efccaed393b044 | |
parent | e3a729a681cfdc9733c833c9574459f577058bbf (diff) |
call pipe->set_vertex_buffer() after drawing/unreferencing.
This fixes potential a stale reference to vertex buffers.
Fixes cubemap demo on i915.
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index cc204640eb1..640fa8263e8 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -242,6 +242,8 @@ st_draw_vbo(GLcontext *ctx, /* unreference buffers (frees wrapped user-space buffer objects) */ for (attr = 0; attr < vs->num_inputs; attr++) { winsys->buffer_reference(winsys, &vbuffer[attr].buffer, NULL); + assert(!vbuffer[attr].buffer); + pipe->set_vertex_buffer(pipe, attr, &vbuffer[attr]); } } |