I have a GL 4.3 tessellation shader program which draws a Bezier curve just fine. Now, I want to draw the control points as well. Obviously, I have to turn off the TCS and TES and switch from glDrawArrays(GL_PATCHES, 0, 4) to glDrawArrays(GL_POINTS, 0, 4) (right?). So, how to do this in one program?
I have tried glGenProgramPipelines(); glBindProgramPipeline(), etc. to bind two separate pipelines, one to draw the curve the other the points, but for the life of me couldn't get the VS-TCS-TES-FS pipeline working to draw the curve.
Is there some other way to do this in GL 4.3 core?