Don't try to get the OpenGL version before SwapBuffers is called.