draw()
{
glBindBuffer( GL_ARRAY_BUFFER, vboid)
{
...
glPatchParameteri(GL_PATCH_VERTICES, 3);
glDrawArrays( GL_PATCHES, 0, size ); // size = how many vertices the model has
...
}
glBindBuffer( GL_ARRAY_BUFFER, 0)
}
The problem is that when it renders the model looks all messy and it certainly doesn't look like when I rendered it using glDrawArrays(GL_TRIANGLES, 0, size). Any suggestions on what parameters to use on glPatchParam... and glDrawArrays?
Thank you






