1. -Remove mainrenderwindow member from render manager, it is useless.