title: SegFault on glCreateShader
body: <p>I'm using Go, the line causing the segfault is:</p>
  
  <pre><code>shader := gl.CreateShader(shaderType)
  </code></pre>
  
  <p>I'm basing my code on <a href="https://github.com/go-gl/examples/tree/master/gl41core-cube" rel="nofollow noreferrer">this example from go-gl repo</a>, which was working, so <code>gl</code> seems to be fine.</p>
  
  <p>Most of my googling pointed to C++ questions to which the answer was to enable <code>glewExperimental</code>, but the Go bindings for OpenGL were generated with <a href="https://github.com/go-gl/glow" rel="nofollow noreferrer"><code>GLOW</code></a>, which apparently circumvents <code>GLEW</code>.</p>
  
  <p>I am initializing my glfw contetxt:</p>
  
  <pre><code>if err := glfw.Init(); err != nil {
      log.Fatalln("failed to initialize glfw:", err)
  }
  </code></pre>
  
  <p>and the <code>gl</code> library:</p>
  
  <pre><code>// Initialize Glow
  if err := gl.Init(); err != nil {
      panic(err)
  }
  </code></pre>
  
  <p>Is there anything I'm missing?  Are there any principles I can use to track this down, i.e. "glCreateShader() Segfaults when XYZ occurs"?</p>