From f3f50daeb4b6d8515675d351428000ec1bf85e5a Mon Sep 17 00:00:00 2001 From: Tobias Jakobi Date: Mon, 10 Feb 2014 14:58:29 +0100 Subject: [PATCH] video_lima: use posix_memalign to request aligned memory aligned_alloc is deprecated --- gfx/lima_gfx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/lima_gfx.c b/gfx/lima_gfx.c index 1c3d750143..f5dd73fa71 100644 --- a/gfx/lima_gfx.c +++ b/gfx/lima_gfx.c @@ -294,7 +294,7 @@ static const void *make_contiguous(limare_data_t *pdata, free(pdata->buffer); pdata->buffer = NULL; - pdata->buffer = aligned_alloc(4, aligned_size); + posix_memalign(&pdata->buffer, 4, aligned_size); if (pdata->buffer == NULL) { RARCH_ERR("video_lima: failed to allocate buffer to make pixel data contiguous\n"); return NULL; @@ -512,7 +512,7 @@ static void lima_render_msg(lima_video_t *vid, const char *msg) { free(lima->buffer); lima->buffer = NULL; - lima->buffer = aligned_alloc(4, aligned_size); + posix_memalign(&lima->buffer, 4, aligned_size); if (lima->buffer == NULL) { RARCH_ERR("video_lima: failed to allocate buffer to render fonts\n"); return;