mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
Revert "softpipe: added null ptr check for align_free() call in vbuf code"
This reverts commit 6db24f449d.
With a null ptr check in align_free() this is no longer needed.
This commit is contained in:
parent
ca640ca959
commit
9d9a7edfbc
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue