Added a flush for offscreen rendering.