View Full Version : Setting Up a Tessillation Shader

03-16-2012, 07:37 AM
Hey all,
I am trying to make a tessilation shader from scratch. It shows "GL_TESS_CONTROL_SHADER was not declared in this scope" and "GL_TESS_CONTROL_SHADER was not declared in this scope". Please let me know where I am wrong.

Link to Code
Triangle: http://codepad.org/ib3dL9Ni

Main: http://codepad.org/cT2wlaS2

Thanks and Regards,

03-17-2012, 04:29 PM
From your output, the Utils.h is missing. Are you using some extension loader like glew? You have to include something that defines the GL_TESS_CONTROL_SHADER constant and loads the openGL functions at runtime.

03-19-2012, 01:17 PM
Thanks menzel. Actually, problem was that I didn't use the latest GLEW library.