title: Getting a glsl 330 context on osx 10.9 (Mavericks)
body: <p>I saw a similar question here: <a href="https://stackoverflow.com/questions/19865463/opengl-4-1-under-mavericks">OpenGL 4.1(?) under Mavericks</a>, but it seems that person is relying on glut, so the solution doesn't apply.</p>
  
  <p>I'm on <strong>OSX 10.9</strong> <em>(Mavericks)</em>, with an <strong>NVidia GeForce 650</strong>, developing in <strong>C++</strong>, using <strong>GLEW</strong> and <strong>GLFW</strong>.</p>
  
  <p>I'm <strong>not</strong> using xcode- keeping it simple with a very basic makefile.</p>
  
  <p>Anyways- I have these 5 lines of code:</p>
  
  <pre><code>window = glfwCreateWindow(640,480,"hello world",NULL,NULL);
  glfwMakeContextCurrent(window);
  glewExperimental = GL_TRUE;
  glewInit();
  
  printf("shader lang: %s\n",glGetString(GL_SHADING_LANGUAGE_VERSION));
  </code></pre>
  
  <p>and it prints out </p>
  
  <pre><code>shader lang: 1.2
  </code></pre>
  
  <p>I'm assuming setting glewExperimental should handle correctly getting the core context? (/ the stuff the other dude was talking about in the other thread)</p>
  
  <p><strong>What else do I need to do to enable the latest shader versions?</strong></p>
  
  <p>Ps- my full code is here, including the makefile: <a href="https://github.com/Phildo/openglexp" rel="nofollow noreferrer">https://github.com/Phildo/openglexp</a> , but I'm not sure how useful it will be.</p>