OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf753a
)
llvmpipe: free vertex buffer memory in lp_setup_vbuf_destroy()
author
Brian Paul
<brianp@vmware.com>
Wed, 28 Apr 2010 21:23:03 +0000
(15:23 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 28 Apr 2010 21:25:50 +0000
(15:25 -0600)
src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
b/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
index
a401275
..
5d3122e
100644
(file)
--- 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);
}