mirror of
https://github.com/overte-org/overte.git
synced 2025-06-19 07:40:16 +02:00
Use removeUnusedResources
This commit is contained in:
parent
98dd401ea3
commit
08317b51da
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ NetworkTexturePointer TextureCache::getTexture(const QUrl& url, TextureType type
|
||||||
texture->setCache(this);
|
texture->setCache(this);
|
||||||
_dilatableNetworkTextures.insert(url, texture);
|
_dilatableNetworkTextures.insert(url, texture);
|
||||||
} else {
|
} else {
|
||||||
_unusedResources.remove(texture->getLRUKey());
|
removeUnusedResource(texture);
|
||||||
}
|
}
|
||||||
return texture;
|
return texture;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue