| 447 | |
| 448 | |
| 449 | void TextureCache::refresh() |
| 450 | // ---------------------------------------------------------------------------- |
| 451 | // Purge stale images |
| 452 | // ---------------------------------------------------------------------------- |
| 453 | { |
| 454 | // REVISIT: the current implementation purges all network images |
| 455 | foreach (GLuint id, fromId.keys()) |
| 456 | { |
| 457 | CachedTexture * tex = fromId[id]; |
| 458 | if (tex->networked) |
| 459 | tex->purge(); |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | |
| 464 | CachedTexture::Links *TextureCache::texLinksForLRU(CachedTexture *tex, |