Removed some silly allocations from Renderer.