title: Why does glGetString(GL_VERSION) return null / zero instead of the OpenGL version?
body: <p>I'm on Linux Mint 13 XFCE. My problem is that when I run in terminal the command: </p>
  
  <pre><code>glxinfo | grep "OpenGL version"
  </code></pre>
  
  <p>I get the following output:</p>
  
  <pre><code>OpenGL version string: 3.3.0 NVIDIA 295.40
  </code></pre>
  
  <p>But when I run the <code>glGetString(GL_VERSION)</code> in my application then the result is null. Why doesn't this code get the <code>gl_version</code>?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;GL/glew.h&gt;
  #include &lt;GL/gl.h&gt;
  #include &lt;GL/glu.h&gt;
  #include &lt;GL/glut.h&gt;
  #include &lt;GL/glext.h&gt;
  
  int main(int argc, char **argv) {
  
      glutInit(&amp;argc, argv);
      glewInit();
  
      printf("OpenGL version supported by this platform (%s): \n",
          glGetString(GL_VERSION));
  }
  </code></pre>