Hopefully this question isn't asking too much, but I'm pretty noob in this area of OpenGL and GLSL.
I get the error that #version 150 is not supported on my Vista machine.
When I'm loading my vertex and fragment shaders:
vertexShader2 = Shader.loadShader(GL20.GL_VERTEX_SHADER, "resources/shader.vert");
fragmentShader2 = Shader.loadShader(GL20.GL_FRAGMENT_SHADER, "resources/shader.frag");
If in my shader files I change
#version 150 core
to
#version 140 core
this allows my program to work on Vista.
Do you happen to know what the difference is between these two versions of GLSL in regards to the change I am making here?
If I make that change on my Windows 7 version, it crashes. So I have to use 1.40 on my Vista build and 1.50 on my Windows 7+ version. I'm going to detect OS and have it pick the appropriate file, so I think the problem is fixed.
My question here is largely academic now if you have any insight. Vista is all but aged out now so this isn't a big deal, but it's interesting and good to be able to cover your bases.