Because the current texture cache implementation is rather inefficient when switching between servers with different texture packs, I changed it to store the textures by their checksum, instead of their filename (e.g. default_dirt.png).
This patchset has one disadvantage that I can currently think of: You can't identify textures in the cache by their filenames anymore.
Please tell me if it works on other operating systems and configurations.
Version 1: http://repo.or.cz/w/minetest-c55/jn.git/shortlog/refs/heads/texture_cache_v1
- currently only tested on Debian (GNU/)Linux, where it works well
Version 2: http://repo.or.cz/w/minetest-c55/jn.git/shortlog/refs/heads/texture_cache_v2
- rebased on celeron's master branch of 2012-02-28
Feedback appreciated!