Slightly simplified the draw loop of the renderer.