title: How do I get anisotropic filtering extensions to work?
body: <p>In my (C++/OpenGL) program, I am loading a set of textures and setting the texture parameters as follows:</p>
  
  <pre><code>//TEXTURES
  glGenTextures(1, &amp;texture1);
  glBindTexture(GL_TEXTURE_2D, texture1);
  // set the texture wrapping parameters
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
  // set texture filtering parameters
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
  
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
  </code></pre>
  
  <p>I found out that anisotropic filtering would help me to enhance the looks on the scene. Therefore, I used this line to achieve it:</p>
  
  <pre><code>glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY, 16);
  </code></pre>
  
  <p>While I had no problems compiling this line of code on my laptop (which had AMD GPU vendor), I cannot achieve to compile this piece of code on my other computer, using Intel(R) HD Graphics 530 (Skylake GT2). 
  Specifically, trying to compile that piece of code using g++ outputs the followin error:</p>
  
  <pre><code>error: ‘GL_TEXTURE_MAX_ANISOTROPY’ was not declared in this scope
   glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY, 16);
  </code></pre>
  
  <p>More specifically, running in my Linux terminal the following command:</p>
  
  <pre><code>glxinfo | grep -i opengl
  </code></pre>
  
  <p>reveals the following details about my GPU vendor and OpenGL support:</p>
  
  <p><a href="https://i.stack.imgur.com/gQGxQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gQGxQ.png" alt="enter image description here"></a></p>
  
  <p>I understand that the ANISOTROPIC FILTERING was enabled in the <a href="https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_texture_filter_anisotropic.txt" rel="nofollow noreferrer"><code>ARB_texture_filter_anisotropic</code></a>, but I honestly don't know how to check whether my GPU vendor supports the extension, and, if he does, how do I make it possible to use the ANISOTROPIC filtering?</p>
  
  <p>BTW: I am using glfw3 and GLAD loader.</p>