Fixed bug where the previous scene was rendered to the first cubemap texture