crappy hash function.
hashmap was working, suddenly decided not to.
Hashmap works, mipmap doesn't yet.