mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
Update rtextures.c
This commit is contained in:
@@ -525,6 +525,8 @@ bool ExportImage(Image image, const char *fileName)
|
|||||||
{
|
{
|
||||||
int success = 0;
|
int success = 0;
|
||||||
|
|
||||||
|
if ((image.width == 0) || (image.height == 0) || (image.data == NULL)) return success;
|
||||||
|
|
||||||
#if defined(SUPPORT_IMAGE_EXPORT)
|
#if defined(SUPPORT_IMAGE_EXPORT)
|
||||||
int channels = 4;
|
int channels = 4;
|
||||||
bool allocatedData = false;
|
bool allocatedData = false;
|
||||||
|
Reference in New Issue
Block a user