#5878: Ensure surfaces are drawn before executing full-screen render commands, and when at the end of the render command list.
(cherry picked from commit bff574e04e0532678a458762f37245564c381196)