fix swapped textures at subtile edges