| 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) |