Fix animated textures glitching