Use flags to avoid hashing textures when unchanged.

If only parameters change (like wrapping or clut, etc.) we don't need to
rehash the data - we know it hasn't changed.

Should reduce the distance between lazy texture hashing on and off.
Switch to a bitmask instead.
Merge pull request #5872 from unknownbrackets/texcache

Use flags to avoid hashing textures when unchanged