[gltfio] Initialize mCgltfBuffersLoaded to fix crash (#7999)

Value of mCgltfBuffersLoaded is sometimes retained across creation of FAssetLoader which skips loading the buffer in AssetLoaderExtended#createPrimitive leading to null pointer crash
This commit is contained in:
Balaji M
2024-07-30 22:12:04 -04:00
committed by GitHub
parent 3f4dac6248
commit 2d21fcbe55

View File

@@ -70,7 +70,8 @@ struct AssetLoaderExtended {
: mEngine(engine),
mGltfPath(config.gltfPath),
mMaterials(materials),
mUriDataCache(std::make_shared<UriDataCache>()) {}
mUriDataCache(std::make_shared<UriDataCache>()),
mCgltfBuffersLoaded(false) {}
~AssetLoaderExtended() = default;