glColorMask not working for me

This is part of my draw code for drawing a triangle vertex:


glVertex3f(pObject->pVerts[ index ].x, pObject->pVerts[ index ].y, pObject->pVerts[ index ].z);

I don’t understand why it is still drawing because I masked the colors. If I comment out the glVertex3f line, then it doesn’t draw, so I am sure that I am looking at the correct place in the code.

Is there something else I need to do?

Nevermind, I just found the problem. glColorMask doesn’t work between a glBegin/glEnd.