Jump to content
  • Advertisement
Sign in to follow this  
apps

OpenGL geometry shader has problem

This topic is 1337 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I am facing problem for geometry shader.

Machine details: ubuntu 14.04, i7 HD 4000+, Mesa 14.4.4

 

Compiled mesalib_14.4.4 and installed on system. I am using glew library.

 

glxinfo shows two version for opengl:

opengl core version string: 3.3

opengl version string  : 3.0

glxinfo and glGetstring shows openGL version 3.0. Even though I have upated intel graphics drivers, it always shows 3.0 version.
My opengl code is compiled successfully. When running it, it gives me INVALID_ENUMERANT error for geometry shader.

Please help me to get rid of this problem.
As per intel, it should support geometry shader.

Share this post


Link to post
Share on other sites
Advertisement

used MESA_GLSL_VERSION_OVERRIDE envirnment varible, sets to 3.2FC.

Also tried glutContext...() API with param GLUT_CORE_PROFILE | GLUT_COMPATIBILITY_PROFILE.

 

But didnt work for me.

Share this post


Link to post
Share on other sites

try using

glutInitContextVersion(3,2);    //if this is the version you want
glutInitContextProfile(GLUT_CORE_PROFILE); // with either this
glutInitContextProfile(GLUT_COMPATIBILITY_PROFILE);    // or this depending on what you want

after you have opened the window do a

glGetString(GL_VERSION);

and say what that reads

Edited by Gooey

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!