This prevents the code from using damage rectangles that are no longer on the screen, causing an out-of-bounds write.
-
_