fixed cmd line saves; forgot only main thread can call opengl