diff options
author | Brian Paul <[email protected]> | 2010-04-28 15:23:03 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-04-28 15:25:50 -0600 |
commit | aac6d84056b8ca406e61f3aa7152c6140787029c (patch) | |
tree | 1e1577035dec8bd31f8a1a30da102c28f14382ff /src/gallium/drivers/llvmpipe/lp_setup_vbuf.c | |
parent | bdf753a858a8431f25bba98f8e77cab1ae03808a (diff) |
llvmpipe: free vertex buffer memory in lp_setup_vbuf_destroy()
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_vbuf.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_vbuf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c b/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c index a4012754784..5d3122e8ba2 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c @@ -440,7 +440,12 @@ lp_setup_draw_arrays(struct vbuf_render *vbr, uint start, uint nr) static void lp_setup_vbuf_destroy(struct vbuf_render *vbr) { - lp_setup_destroy(lp_setup_context(vbr)); + struct lp_setup_context *setup = lp_setup_context(vbr); + if (setup->vertex_buffer) { + align_free(setup->vertex_buffer); + setup->vertex_buffer = NULL; + } + lp_setup_destroy(setup); } |