Add !(gstate.zmsk & 1); to depthMask