Hello, I’m trying to follow the code explained on OpenGL superbible book…
…there is a basic code for tessellation demonstration, it have to figure out a triangle through VertexShader -> TessellationControlShader -> TessellatioEvaluationShader -> FragmentShader.
The triangle at the must be filled with a lot of subtriangle…
…the way to figure it out is to call :
glDrawArrays(GL_PATCHES,0,3);
What happen is an empty window…and i get an exception : “GL_INVALID_ENUM error generated. Invalid primitive mode.”
if i call the following : glDrawArrays(GL_TRIANGLES,0,3); it shows a simple triangle but it is not filled with tessellation.
I’m working with OpenGL version 3.3.0, is there a reason for this behavior?
Sorry for my stupid beginner question.