title: How To Use libGLESv2.so in Your Program
body: <p>I am accustomed to linking against libGL.so on most Linux distributions. Either mesa's implementation or NVIDIA's. However, I would really like to limit myself to OpenGL ES 2.X functionality, so I am attempting to link against and use libGLESv2.so. However, I see that glX functions are not present in libGLESv2.so dynamic section:</p>
  
  <pre><code>nm --dynamic /usr/lib64/nvidia/libGLESv2.so | grep glX
  </code></pre>
  
  <p>Also attempting to link agains libGLESv2.so results in undefined references to glX functions.</p>
  
  <p>This leads me to my question. What is the correct way to "GetProcAddress" while dynamically linking against libGLESv2.so? Also how do you construct the appropriate context without glX?</p>