525e4c0bea
Drop glScissor, and just clip the surface against the repaint region and render each rectangle in the resulting region.