MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / clean

Method clean

src/Core/Engine/ResourceManager.cpp:60–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 void ResourceManager::clean()
61 {
62 for (auto& texturePair : m_textures)
63 {
64 if (texturePair.second.first && texturePair.second.first->useCount() == 1)
65 {
66 texturePair.second.first.reset();
67 }
68 if (texturePair.second.second && texturePair.second.second->useCount() == 1)
69 {
70 texturePair.second.second.reset();
71 }
72 }
73 }
74
75 ResourceManager::ResourceManager()
76 : defaultAntiAliasing(false)

Callers

nothing calls this directly

Calls 2

useCountMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected