summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 03aaf625..1b4ef00c 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -2996,6 +2996,9 @@ char *LoadText(const char *fileName)
if (textFile != NULL)
{
+ // WARNING: When reading a file as 'text' file,
+ // text mode causes carriage return-linefeed translation...
+ // ...but using fseek() should return correct byte-offset
fseek(textFile, 0, SEEK_END);
int size = ftell(textFile);
fseek(textFile, 0, SEEK_SET);