summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_draw.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-15 13:05:15 -0600
committerBrian <[email protected]>2007-10-15 13:05:15 -0600
commit8630e5edb36f00de30117d56c1691363d471c0cc (patch)
tree17ce35d4d14f1b26be00bbcbe4efccaed393b044 /src/mesa/state_tracker/st_draw.c
parente3a729a681cfdc9733c833c9574459f577058bbf (diff)
call pipe->set_vertex_buffer() after drawing/unreferencing.
This fixes potential a stale reference to vertex buffers. Fixes cubemap demo on i915.
Diffstat (limited to 'src/mesa/state_tracker/st_draw.c')
-rw-r--r--src/mesa/state_tracker/st_draw.c2
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]);
}
}