Fix various "random" texture glitches