Hello Guest

[CLOSED] Geometry Shader

  • 2 Replies
  • 138 Views
[CLOSED] Geometry Shader
« 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.
« Last Edit: May 14, 2018, 14:04:01 by elhant1 »

*

Offline KaiHH

  • ***
  • 108
Re: [BUG] Geometry Shader
« Reply #1 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.
« Last Edit: May 14, 2018, 13:13:26 by KaiHH »

Re: [BUG] Geometry Shader
« Reply #2 on: May 14, 2018, 14:03:33 »
Thank you ! Sorry for the silly question.
I just changed my version and it is working fine.