diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rtextures.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rtextures.c b/src/rtextures.c index d83d11e5..5e39260e 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -525,6 +525,8 @@ bool ExportImage(Image image, const char *fileName) { int success = 0; + if ((image.width == 0) || (image.height == 0) || (image.data == NULL)) return success; + #if defined(SUPPORT_IMAGE_EXPORT) int channels = 4; bool allocatedData = false; |
