Merge pull request #2655 from mimimi085181/texturecache-iterator-fix Quick fix for an invalid iterator