PDA

View Full Version : glColorMask not working for me



GameMaker
12-04-2002, 01:33 PM
This is part of my draw code for drawing a triangle vertex:

glColorMask(GL_FALSE, GL_FALSE, GL_FALSE,GL_FALSE);

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?

GameMaker
12-04-2002, 01:40 PM
Nevermind, I just found the problem. glColorMask doesn't work between a glBegin/glEnd.