The problem is just one missing letter. Instead of this:
glBegin(GL_POINT);
The correct value is:
glBegin(GL_POINTS);
The first thing I would do any time you get no rendering, or not the expected rendering, is to call glGetError()
, and see if it returns an error. I admit that I didn't see this problem initially, but calling glGetError()
would have pointed it out quickly.
BTW: In case anybody else is surprised that there are both GL_POINT
and GL_POINTS
enums in OpenGL. GL_POINT
is one of the possible arguments to glPolygonMode()
, as opposed to GL_POINTS
which denotes one of the possible primitive types for draw calls.