mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
mesa/st: Fix vertex buffer leak
Make sure we unreference the vertex buffer pointers in a local array. This fixes huge vertex buffer / memory leaks in mesa demos "fire" and "engine". NOTE: This is a candidate for the 7.9 and 7.10 branches. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
This commit is contained in:
parent
1e1b89103e
commit
bb1036aae5
1 changed files with 1 additions and 0 deletions
|
|
@ -261,6 +261,7 @@ st_feedback_draw_vbo(struct gl_context *ctx,
|
|||
pipe_buffer_unmap(pipe, vb_transfer[i]);
|
||||
pipe_resource_reference(&draw->pt.vertex_buffer[i].buffer, NULL);
|
||||
draw_set_mapped_vertex_buffer(draw, i, NULL);
|
||||
pipe_resource_reference(&vbuffers[i].buffer, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue