Fixed mipmap tearing by replacing the algorithm to the older one.