Use removeUnusedResources

This commit is contained in:
Atlante45 2015-01-12 11:12:50 -08:00
parent 98dd401ea3
commit 08317b51da

View file

@ -203,7 +203,7 @@ NetworkTexturePointer TextureCache::getTexture(const QUrl& url, TextureType type
texture->setCache(this);
_dilatableNetworkTextures.insert(url, texture);
} else {
_unusedResources.remove(texture->getLRUKey());
removeUnusedResource(texture);
}
return texture;
}