90febaf717
We already pass a reference to the system object to the constructor of the renderer, so we can just use that instead of using the global accessor functions.