Fix the clipping sub-rectangle when rendering