title: cannot use GLSL 330 on mac mavericks
body: <p>I'm trying to learn OpenGL and the material is using #version 330 in shaders. I can compile it successfully, but when I try to run it, it complains Version 330 is not supported.</p>
  
  <p>In my source code, I use free glut and OpenGL framework in Xcode. If I also include these two lines of code  </p>
  
  <p>glutInitContextVersion(3,1);
   glutInitContextFlags(GLUT_CORE_PROFILE);</p>
  
  <p>it cannot be compiled.</p>
  
  <p>My mac is MacBook Pro Mid 2012. It should support OpenGL4.1 according to apply.</p>
  
  <p>So how can I compile version 330 shaders?</p>