projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca640ca
)
Revert "softpipe: added null ptr check for align_free() call in vbuf code"
author
Brian Paul
<brianp@vmware.com>
Thu, 5 Mar 2009 17:01:53 +0000
(10:01 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 5 Mar 2009 17:01:53 +0000
(10:01 -0700)
This reverts commit
6db24f449de9cc81e1f7bb2dde55a9819463d5e5
.
With a null ptr check in align_free() this is no longer needed.
src/gallium/drivers/softpipe/sp_prim_vbuf.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_prim_vbuf.c
b/src/gallium/drivers/softpipe/sp_prim_vbuf.c
index e2b6a041b38d87e8077119a1c96ad7e8453aa044..eef6e5806c95095bae584fac4d332f9baa29300c 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_prim_vbuf.c
+++ b/
src/gallium/drivers/softpipe/sp_prim_vbuf.c
@@
-90,8
+90,7
@@
sp_vbuf_allocate_vertices(struct vbuf_render *vbr,
unsigned size = vertex_size * nr_vertices;
if (cvbr->vertex_buffer_size < size) {
- if (cvbr->vertex_buffer)
- align_free(cvbr->vertex_buffer);
+ align_free(cvbr->vertex_buffer);
cvbr->vertex_buffer = align_malloc(size, 16);
cvbr->vertex_buffer_size = size;
}