title: C++ OpenGL shading version error - GLSL x is not supported [Ubuntu 16.04]
body: <p>I am currently working on a project using OpenGL on Ubuntu 16.04 and have run into a major issue. At this point I have no idea what to do as it feels like I have tried everything in order to fix this. </p>
  
  <p>For some reason my shader just won't compile and returns the following error: </p>
  
  <pre><code>Failed to compile vertex shader!
  0:1(10): error: GLSL 4.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES`
  </code></pre>
  
  <p>I have adjusted the version in the shader file without any luck. <code>#version  450 core</code> etc. but I keep getting the same result.</p>
  
  <p>For reference, here is the output of <code>sudo glxinfo | grep "OpenGL"</code>:</p>
  
  <pre><code>OpenGL vendor string: Intel Open Source Technology Center
  OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)
  OpenGL core profile version string: 4.5 (Core Profile) Mesa 13.1.0-devel
  OpenGL core profile shading language version string: 4.50
  OpenGL core profile context flags: (none)
  OpenGL core profile profile mask: core profile
  OpenGL core profile extensions:
  OpenGL version string: 3.0 Mesa 13.1.0-devel
  OpenGL shading language version string: 1.30
  OpenGL context flags: (none)
  OpenGL extensions:
  OpenGL ES profile version string: OpenGL ES 3.2 Mesa 13.1.0-devel
  OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
  OpenGL ES profile extensions:
  </code></pre>
  
  <p>The output from glxinfo shows OpenGL core 4.5 is installed, so why is this not supported?</p>
  
  <p>I have also tried to find the current version of OpenGL used in the project: <code>std::cout &lt;&lt; "OpenGL version: " &lt;&lt; glGetString(GL_VERSION) &lt;&lt; std::endl;</code> which results in a blank return.</p>
  
  <p>I have spent 10 hours on this single issue until now, so any help is appreciated!</p>
  
  <p>Edit:
  Is there a way to force the project/Ubuntu to use OpenGL and not GLSL by i.e. removing GLSL completely (this part)?</p>
  
  <pre><code>OpenGL ES profile version string: OpenGL ES 3.2 Mesa 13.1.0-devel
  OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
  OpenGL ES profile extensions:
  </code></pre>