Attempt to have OpenGL 3.1 context running rather than 2.1, needs to resolve errors while creating and displaying the context