summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/textures.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c
index 530fd235..d73cc1c6 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -420,7 +420,8 @@ void ExportImageAsCode(Image image, const char *fileName)
int dataSize = GetPixelDataSize(image.width, image.height, image.format);
- // NOTE: Text data buffer size is estimated considering image data size
+ // NOTE: Text data buffer size is estimated considering image data size in bytes
+ // and requiring 6 char bytes for every byte: "0x00, "
char *txtData = (char *)RL_CALLOC(6*dataSize + 2000, sizeof(char));
int bytesCount = 0;