From 8f4fa5006b5fd4dc25fec3ed5dcbbecd832dd345 Mon Sep 17 00:00:00 2001 From: Ray San Date: Tue, 22 May 2018 12:09:12 +0200 Subject: [PATCH] Added a note --- src/textures.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/textures.c b/src/textures.c index 3a1934b9..c4ef31cf 100644 --- a/src/textures.c +++ b/src/textures.c @@ -567,8 +567,10 @@ void ExportImage(const char *fileName, Image image) { // NOTE: Getting Color array as RGBA unsigned char values unsigned char *imgData = (unsigned char *)GetImageData(image); + + // NOTE: SavePNG() not supported by some platforms: PLATFORM_WEB, PLATFORM_ANDROID SavePNG(fileName, imgData, image.width, image.height, 4); - // FIXME ^ this fails on PLATFORM_WEB, what should we do? + free(imgData); }