Advertisement Jump to content
Sign in to follow this  

OpenGL geometry shader has problem

This topic is 1427 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


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

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


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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!