summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-12-28 14:25:09 -0700
committerBrian <[email protected]>2008-01-01 10:21:21 -0700
commit678db26b9d2db0c76e7676b5499d8d55a5619a94 (patch)
tree369600ccfc959203b54771ab276f0f3bcbcbb844 /src/mesa
parentc37d2c9325a39287e29c22ab0e6838e7e35c7175 (diff)
unref buffer after drawing, fixes rastpos mem leak
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_draw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index b3d463043d4..96db9e3c03b 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -616,6 +616,7 @@ st_feedback_draw_vbo(GLcontext *ctx,
if (draw->vertex_buffer[i].buffer) {
pipe->winsys->buffer_unmap(pipe->winsys,
draw->vertex_buffer[i].buffer);
+ winsys->buffer_reference(winsys, &draw->vertex_buffer[i].buffer, NULL);
draw_set_mapped_vertex_buffer(draw, i, NULL);
}
}