GL: Fix FreeBSD build
Vicki Pfau vi@endrift.com
Fri, 17 May 2019 19:25:25 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/platform/sdl/gles2-sdl.c
→
src/platform/sdl/gles2-sdl.c
@@ -13,7 +13,7 @@
#include <mgba/core/core.h> #include <mgba/core/thread.h> -#ifndef __APPLE__ +#ifdef __linux__ #include <malloc.h> #endif@@ -37,7 +37,7 @@
size_t size = renderer->width * renderer->height * BYTES_PER_PIXEL; #ifdef _WIN32 renderer->outputBuffer = _aligned_malloc(size, 16); -#elif !defined(__APPLE__) +#elif defined(__linux__) renderer->outputBuffer = memalign(16, size); #else posix_memalign((void**) &renderer->outputBuffer, 16, size);