mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
call pipe->set_vertex_buffer() after drawing/unreferencing.
This fixes potential a stale reference to vertex buffers. Fixes cubemap demo on i915.
This commit is contained in:
parent
e3a729a681
commit
8630e5edb3
1 changed files with 2 additions and 0 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue