gltfio: add 'detach' methods to allow ownership transfer

These new methods allow gltfio to be integrated into internal Google
libraries.
This commit is contained in:
Philip Rideout
2022-08-09 09:39:07 -07:00
parent efba9a636a
commit 75004e9d3e
5 changed files with 61 additions and 16 deletions

View File

@@ -687,7 +687,7 @@ Texture* ResourceLoader::Impl::getOrCreateTexture(FFilamentAsset* asset, const T
<< provider->getPushMessage() << io::endl;
asset->mDependencyGraph.markAsError(tb.materialInstance);
} else {
asset->takeOwnership(texture);
asset->attachTexture(texture);
}
return texture;