LWJGL Forum

Programming => Bug Reports / RFE => Topic started by: elhant1 on May 14, 2018, 12:48:32

Title: [CLOSED] Geometry Shader
Post by: elhant1 on May 14, 2018, 12:48:32
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:
Code: [Select]

            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 :
Quote
OpenGL version: 3.0 Mesa 17.0.3
Geometry 0
Fragment 1


Could you help me ?

Thank you.
Title: Re: [BUG] Geometry Shader
Post by: KaiHH on May 14, 2018, 13:10:39
Please have a look at: https://www.khronos.org/opengl/wiki/Geometry_Shader
Geometry Shaders have been introduced in OpenGL 3.2.
Title: Re: [BUG] Geometry Shader
Post by: elhant1 on May 14, 2018, 14:03:33
Thank you ! Sorry for the silly question.
I just changed my version and it is working fine.