I am trying to \"fill\" a surface of a sphere that I drew using this algorithm here: http://paulbourke.net/miscellaneous/sphere_cylinder/, the first method. I know that
How does GL_TRIANGLE_FAN works exactly?
The first vertex of a triangle fan acts like a hub. The vertices following connect with the previous non-starting vertex and the hub.
You probably need a triangle strip instead of a fan.
See also this question: gl_triangle_strip vs gl_triangle_fan