Fix scissor rectangle crash when switching to fullscreen.