summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-14 17:20:40 -0600
committerBrian <[email protected]>2007-08-14 17:20:40 -0600
commit681b1ebd5e1a94961a1d38b3018af97a10d2d5b0 (patch)
tree6ed60d5612daabd5deb484596e23a62221f01da5
parent9623683dfcb03ce42746765ba3e706b6a7085d39 (diff)
use regular malloc/free instead of macros
-rw-r--r--src/mesa/pipe/draw/draw_context.c4
-rw-r--r--src/mesa/pipe/draw/draw_vb.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c
index 4335b47e094..0707c03e5f7 100644
--- a/src/mesa/pipe/draw/draw_context.c
+++ b/src/mesa/pipe/draw/draw_context.c
@@ -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 );
}
diff --git a/src/mesa/pipe/draw/draw_vb.c b/src/mesa/pipe/draw/draw_vb.c
index ef32f02ec10..c0600314d6f 100644
--- a/src/mesa/pipe/draw/draw_vb.c
+++ b/src/mesa/pipe/draw/draw_vb.c
@@ -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);
}
}