Skip to content

Commit

Permalink
Fix material loading #3126
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Aug 4, 2023
1 parent 62f5382 commit 6094869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/external/tinyobj_loader_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6094869

Please sign in to comment.