mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-12 06:18:14 +00:00
cmake: Fix PLATFORM_WEB build
Did this ever work? Surely, doesn't look like it...
This commit is contained in:
@@ -568,6 +568,7 @@ void ExportImage(const char *fileName, Image image)
|
||||
// NOTE: Getting Color array as RGBA unsigned char values
|
||||
unsigned char *imgData = (unsigned char *)GetImageData(image);
|
||||
SavePNG(fileName, imgData, image.width, image.height, 4);
|
||||
// FIXME ^ this fails on PLATFORM_WEB, what should we do?
|
||||
free(imgData);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user