[CLOSED] Geometry Shader

Started by elhant1, May 14, 2018, 12:48:32

Previous topic - Next topic

elhant1

Hello,

I use lwjgl 2.9.3. My OpenGl version is  3.0 Mesa 17.0.3, on a linux computer.

And I can't create a geometry shader, contrary to other shaders.

glCreateShader(GL_GEOMETRY_SHADER) returns always 0.

Example:
            Display.setDisplayMode(new DisplayMode(Settings.width,Settings.height));
            Display.setTitle("3D");
            Display.create(new PixelFormat().withSamples(Settings.antialiasing)); //Mutli-sampling.
            System.out.println("OpenGL version: " + glGetString(GL_VERSION));
            System.out.println("Geometry "+glCreateShader(GL_GEOMETRY_SHADER));
            System.out.println("Fragment "+glCreateShader(GL_FRAGMENT_SHADER));


Results :
QuoteOpenGL version: 3.0 Mesa 17.0.3
Geometry 0
Fragment 1


Could you help me ?

Thank you.

KaiHH

Please have a look at: https://www.khronos.org/opengl/wiki/Geometry_Shader
Geometry Shaders have been introduced in OpenGL 3.2.

elhant1

Thank you ! Sorry for the silly question.
I just changed my version and it is working fine.