diff --git a/fast_obj.h b/fast_obj.h index 2e1ad1d..89bf099 100644 --- a/fast_obj.h +++ b/fast_obj.h @@ -1085,7 +1085,7 @@ int read_mtllib(fastObjData* data, void* file, const fastObjCallbacks* callbacks if (is_whitespace(*p)) p = read_map(data, p, &mtl.map_d); } - else if (p[0] == 'b' && + else if ((p[0] == 'b' || p[0] == 'B') && p[1] == 'u' && p[2] == 'm' && p[3] == 'p' &&