Solve texture tiling problem