GLFW opens OpenGL 3.2 context but Freeglut can't - why?

后端 未结 3 1840
一整个雨季
一整个雨季 2021-02-15 13:47

I am working on a Mac, I\'ve got FreeGlut compiled and installed, but I can\'t seem to get the OpenGL 3.2 context with it. However, I can get it without any problem while using

3条回答
  •  鱼传尺愫
    2021-02-15 14:36

    You need to include the flag. usually under the Version. It should look something like this:

    glutInitContextFlag(GLUT_FOWARD_COMPATIBLE);
    

提交回复
热议问题