diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-04-22 19:24:30 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-04-22 19:25:00 +0100 |
commit | cdaceaafee01867d289c2b72fed9c7a200a9e350 (patch) | |
tree | e975b69daf0a4dcbe58cebdf1e0eb1c0881cd037 /src/gallium/drivers/llvmpipe/lp_texture.c | |
parent | ccdc6b5913885866e100780bfd661672c9a5d23c (diff) |
llvmpipe: Portability fixes.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_texture.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index f766ab2300..336b487bd4 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.c +++ b/src/gallium/drivers/llvmpipe/lp_texture.c @@ -85,7 +85,7 @@ alloc_layout_array(unsigned num_slices, unsigned width, unsigned height) assert(LP_TEX_LAYOUT_NONE == 0); /* calloc'ing LP_TEX_LAYOUT_NONE here */ return (enum lp_texture_layout *) - calloc(num_slices * tx * ty, sizeof(enum lp_texture_layout)); + CALLOC(num_slices * tx * ty, sizeof(enum lp_texture_layout)); } @@ -265,7 +265,7 @@ llvmpipe_resource_destroy(struct pipe_screen *pscreen, /* free layout flag arrays */ for (level = 0; level < Elements(lpr->tiled); level++) { - free(lpr->layout[level]); + FREE(lpr->layout[level]); lpr->layout[level] = NULL; } } |