fixed #2251: A logical error in CCDrawNode::drawPolygon.