Fix Windows path split in tester_v3_c parse_file_arg too
parse_file_arg() duplicated the '/' only base-dir split from parse_path_for_test(); a Windows-style arg (models\Cube\Cube.gltf) yielded an empty base dir and external buffers failed to load.
This commit is contained in:
@@ -1660,6 +1660,7 @@ static int parse_file_arg(const char *path) {
|
||||
}
|
||||
|
||||
slash = strrchr(path, '/');
|
||||
if (!slash) slash = strrchr(path, '\\');
|
||||
base_len = slash ? (size_t)(slash - path) : 0;
|
||||
|
||||
tg3_error_stack_init(&errors);
|
||||
|
||||
Reference in New Issue
Block a user