Merge pull request #1955 from degasus/master TexCache: Rewrite the texID generation for paletted textures