Setting GL Attributes before opening the window