From c110f6fe08298fc17b83d3b947627894458b55b0 Mon Sep 17 00:00:00 2001 From: adamxzheng Date: Mon, 5 Aug 2024 10:24:11 +0800 Subject: [PATCH] bugfix: GetFileSizeFunction is NULL, causing SetFsCallbacks to fail --- src/Model/FrmModelIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/FrmModelIO.cpp b/src/Model/FrmModelIO.cpp index 2186b01..3c00d7a 100644 --- a/src/Model/FrmModelIO.cpp +++ b/src/Model/FrmModelIO.cpp @@ -916,7 +916,7 @@ static void GLTFLoaderSetup(tinygltf::TinyGLTF*const loaderPtr) { ADRENO_REF(loaderPtr, loader); loader.SetImageLoader(&StubGltfLoadImageDataFunction, nullptr); - loader.SetFsCallbacks(tinygltf::FsCallbacks{ &Gltf_FileExists, &Gltf_ExpandFilePath, &Gltf_ReadWholeFile, &Gltf_WriteWholeFile, NULL }); + loader.SetFsCallbacks(tinygltf::FsCallbacks{ &Gltf_FileExists, &Gltf_ExpandFilePath, &Gltf_ReadWholeFile, &Gltf_WriteWholeFile, &tinygltf::GetFileSizeInBytes }); } static bool GltfModelNodeMeshIndexValid(const int gltfModelNodeMeshIndex, const size_t gltfModelMeshesSize) {