title: Why is an Exception occurring in SharpGL.dll?
body: <p>I am attempting to plot something simple like a triangle using VBO's.</p>
  
  <p>The example code is provided on github here:</p>
  
  <p><a href="https://github.com/dwmkerr/sharpgl/blob/master/source/SharpGL/Samples/WinForms/ModernOpenGLSample/Scene.cs" rel="nofollow">https://github.com/dwmkerr/sharpgl/blob/master/source/SharpGL/Samples/WinForms/ModernOpenGLSample/Scene.cs</a></p>
  
  <p>The following 'using' statements compile for me properly.</p>
  
  <pre><code>using SharpGL;
  using SharpGL.SceneGraph;
  using SharpGL.VertexBuffers;
  </code></pre>
  
  <p>My program crashes at this line:</p>
  
  <pre><code>vertexBufferArray.Create(gl);
  </code></pre>
  
  <p>It gives me the following exception: </p>
  
  <pre><code>An unhandled exception of type 'System.Exception' occurred in SharpGL.dll
  
  Additional information: Extension function glGenVertexArrays not supported
  </code></pre>
  
  <p>Why would the program compile with the Create() function if one of its dependencies is not supported? What exactly is the best way to determine if the dependency is actually available and how to properly install it?</p>