Added code to clean light list and frame buffer.