mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 22:05:59 +08:00
Merge pull request #418 from agnat/fix_get_file_size_bug
[Bugfix] Actually invoke the user-supplied function instead of subtracting from a pointer...
This commit is contained in:
commit
350c296802
@ -2425,7 +2425,7 @@ static bool LoadExternalFile(std::vector<unsigned char> *out, std::string *err,
|
||||
|
||||
size_t file_size{0};
|
||||
std::string _err;
|
||||
bool ok = fs-GetFileSizeInBytes(&file_size, &_err, filepath, fs->user_data);
|
||||
bool ok = fs->GetFileSizeInBytes(&file_size, &_err, filepath, fs->user_data);
|
||||
if (!ok) {
|
||||
if (_err.size()) {
|
||||
if (failMsgOut) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user