mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
fix ref accounting for garbage collection
This commit is contained in:
parent
06d40afeac
commit
b79af55e16
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ bool CollisionRenderMeshCache::releaseMesh(CollisionRenderMeshCache::Key key) {
|
|||
CollisionMeshMap::const_iterator itr = _geometryMap.find(key);
|
||||
if (itr != _geometryMap.end()) {
|
||||
assert((*itr).second.use_count() != 1);
|
||||
if ((*itr).second.use_count() == 2) {
|
||||
if ((*itr).second.use_count() == 1) {
|
||||
// we hold all of the references inside the cache so we'll try to delete later
|
||||
_pendingGarbage.push_back(key);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue