Masking almost working fine, just a little bug

Hi, I have implemented masking in my program, based on NeHe’s masking tutorial. I use (GL_DST_COLOR, GL_ZERO) for the first pass using a black/white bmp mask and (GL_ONE, GL_ONE) for the second, the real texture. But the white from the mask is showed as transparent black, here is the pic:

I have tried disabling fog and other artifacts, with no result.


Just solved. Was a stupid problem in the rendering cue order.