title: Misunderstood Compiler Error on glGenerateMipmap(GL_TEXTURE_2D);
body: <p>error: there are no arguments to 'glGenerateMipmap' that depend on a template parameter, so a declaration of 'glGenerateMipmap' must be available [-fpermissive]</p>
  
  <p>I have #include <code>&lt;GL/glext.h&gt;</code> included and can see the declaration of the function in the header, however I get the compiler error above. I am on Ubuntu 13.04 with the most up-to-date nvidia drivers installed. I would assume that this function would be defined.</p>
  
  <p>My use of the function is:</p>
  
  <pre><code>  if (mipmapped) {
      glGenerateMipmap(GL_TEXTURE_2D);
    }
  </code></pre>
  
  <p>Why is my compiler choking on this function? What does that error mean in this context?</p>