summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-08-04 18:14:47 +0200
committerRay <[email protected]>2023-08-04 18:14:47 +0200
commit6094869e3e845e90e1e8ae41b98e889fb3e13e78 (patch)
treed43899004264f8e04ed49f88f7c678d1aad37c88 /src
parent62f5382d560bde7fca0565dedfebcdded34ade96 (diff)
downloadraylib-6094869e3e845e90e1e8ae41b98e889fb3e13e78.tar.gz
raylib-6094869e3e845e90e1e8ae41b98e889fb3e13e78.zip
Fix material loading #3126
Diffstat (limited to 'src')
-rw-r--r--src/external/tinyobj_loader_c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/external/tinyobj_loader_c.h b/src/external/tinyobj_loader_c.h
index 6d34d25f..502a55a7 100644
--- a/src/external/tinyobj_loader_c.h
+++ b/src/external/tinyobj_loader_c.h
@@ -746,7 +746,7 @@ static int tinyobj_parse_and_index_mtl_file(tinyobj_material_t **materials_out,
(*materials_out) = NULL;
(*num_materials_out) = 0;
- fp = fopen(filename, "r");
+ fp = fopen(filename, "rt");
if (!fp) {
fprintf(stderr, "TINYOBJ: Error reading file '%s': %s (%d)\n", filename, strerror(errno), errno);
return TINYOBJ_ERROR_FILE_OPERATION;