mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
use regular malloc/free instead of macros
This commit is contained in:
parent
9623683dfc
commit
681b1ebd5e
2 changed files with 5 additions and 5 deletions
|
|
@ -80,8 +80,8 @@ void draw_destroy( struct draw_context *draw )
|
|||
|
||||
vf_destroy( draw->vf );
|
||||
|
||||
FREE( draw->vcache.vertex[0] ); /* Frees all the vertices. */
|
||||
FREE( draw );
|
||||
free( draw->vcache.vertex[0] ); /* Frees all the vertices. */
|
||||
free( draw );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -795,7 +795,7 @@ void draw_alloc_tmps( struct draw_stage *stage, GLuint nr )
|
|||
stage->nr_tmps = nr;
|
||||
|
||||
if (nr) {
|
||||
GLubyte *store = MALLOC(MAX_VERTEX_SIZE * nr);
|
||||
GLubyte *store = (GLubyte *) malloc(MAX_VERTEX_SIZE * nr);
|
||||
GLuint i;
|
||||
|
||||
stage->tmp = MALLOC(sizeof(struct vertex_header *) * nr);
|
||||
|
|
@ -808,7 +808,7 @@ void draw_alloc_tmps( struct draw_stage *stage, GLuint nr )
|
|||
void draw_free_tmps( struct draw_stage *stage )
|
||||
{
|
||||
if (stage->tmp) {
|
||||
FREE(stage->tmp[0]);
|
||||
FREE(stage->tmp);
|
||||
free(stage->tmp[0]);
|
||||
free(stage->tmp);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue