I had an issue with my shaders when I realized I'm using OpenGL 2.1 and GLSL 1.2. Due to the fact that geometry shaders are not supported until 1.5 I need to use another OpenGL, GLSL Version. But how? I think I read up to 15 threads but nothing worked for me.
My Mac is running on 10.9.3 with PyOpenGL 3.0.2. I've downloaded an OpenGL Extention Viewer to see what Versions and Extentions are supported. And the Intel HD Graphics 4000 as well as the NVIDIA GeForce 650M support OpenGL 3.2 in the Core Profile but not in die Compatibility Profile.
I assume that the Compatibility Profile is the fact why I can't compile geometry shaders. It just supports OpenGL up to 2.1.
I've tried to change the Profile like this:
glutInitContextVersion (3, 2)
glutInitContextProfile(GLUT_CORE_PROFILE)
but both functions are undefined. And the GL_SHADING_LANGUAGE_VERSION (1.2) and GL_VERSION 2.1 are still the same.
Due to another thread I used #version 150 core
in my geometry shader but this also had no effect.
How can I change the Context/Version in order to use my geometry shaders?