OpenGL Context + ShadingLanguage

Hello,

i am trying to setup OpenGL on my MacMini (2014). OpenGL 4.1 supported.

I use GLFW to create the Context.
My Shaders are 1.30
So i want to Create an OpenGL 3.0 Context.

glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
    glfwCreateWindow(340, 280, "glfw", NULL, NULL);

But than CreateWindow return NULL.

Which Context / GLSL is supported on Linux,Window and Mac?

OSX Supports:


A "Legacy" (Compatibility) profile: GL 1.1, 1.2, 1.3, 1.4, 1.5, 2.0, 2.1    GLSL 100, 110, 120
A "Core" profile:                   GL 3.2, 3.3, 4.0, 4.1                   GLSL 140, 150, 330, 400, 410

You will always get the highest context version your driver can support (i.e. 2.1 or 4.1). Note that the older language versions are not supported in core profile. And note that version #130 isn’t supported at all.

Thank You.

Using CoreProfile GL 3.2 GLSL 1.50

Works on all three platforms.

Nice.