mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-10-23 01:01:10 +00:00
Fix logic error. Fixes #104
This commit is contained in:
@@ -1703,7 +1703,7 @@ bool WriteImageData(const std::string *basepath, const std::string *filename,
|
||||
} else {
|
||||
// Write image to disc
|
||||
FsCallbacks *fs = reinterpret_cast<FsCallbacks *>(fsPtr);
|
||||
if (fs != nullptr && fs->WriteWholeFile == nullptr) {
|
||||
if ((fs != nullptr) && (fs->WriteWholeFile != nullptr)) {
|
||||
const std::string imagefilepath = JoinPath(*basepath, *filename);
|
||||
std::string writeError;
|
||||
if (!fs->WriteWholeFile(&writeError, imagefilepath, data,
|
||||
|
||||
Reference in New Issue
Block a user