* Remove all encoded sprites from the sprite cache without * discarding sprite location information. */
| 909 | * discarding sprite location information. |
| 910 | */ |
| 911 | void GfxClearSpriteCache() |
| 912 | { |
| 913 | /* Clear sprite ptr for all cached items */ |
| 914 | for (SpriteCache &sc : _spritecache) { |
| 915 | if (sc.ptr != nullptr) sc.ClearSpriteData(); |
| 916 | } |
| 917 | |
| 918 | VideoDriver::GetInstance()->ClearSystemSprites(); |
| 919 | } |
| 920 | |
| 921 | /** |
| 922 | * Remove all encoded font sprites from the sprite cache without |
no test coverage detected