Fix textures for switching to texture atlas.