Avoid rehashing an unchanged texture

Every time SetTexture() is called, textures are rehashed (with default settings.)  Enabling texturing was causing this, even if the texture didn't change - which was causing the horrible slowdown in #5788.

#5788 is still slow, but it's now bearable even with "lazy texture hashing" off.

-[Unknown]