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

后端 未结 3 1842
一整个雨季
一整个雨季 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:33

    In 10.8 and 10.7 GL 3.2 is available if you explicitly call for it when setting up the GL context. Apple calls this the "Core Profile" to distinguish from the "Legacy Profile" which is GL 2.1.

    I ran into this issue with Wine on OSX, it does not support OpenGL 3.2. My understanding is that the X11 server (either Apple X11 or XQuartz) currently does not implement the 3.2 support, nor is there a switch to flip somewhere to enable it. It could be for compatibility concerns since 3.2 profile will break some existing GL applications

    This post suggests using GLFW (or maybe Apple's GLUT.framework if there is still such a thing)

    This page explains the GL stack on OSX and confirms the 2.1 issue with GLX.

提交回复
热议问题