Fix clipping for tile-based rendering.