title: Cocos2d-x 3 beta : polygon not drawn right
body: <p>Im using DrawNode as recommended to draw polygon but the problem its not drawn right as i like i attaching the image of the desired polygon shape and one that is output of my code that output wrong .<br>
  the code :</p>
  
  <pre><code>if (sprite &amp;&amp; sprite-&gt;init())
  {
          sprite-&gt;setTextureRect( Rect(0, 0, 200 ,200) );
          sprite-&gt;autorelease();        
          auto draw = DrawNode::create();
  
          {
  
          Point Block1[] = {
              Point(0,0),
              Point(30,0),
              Point(50,10),        
              Point(80,10),
              Point(100,0),    
              Point(200,0),
              Point(200,40),               
              Point(100,40), 
              Point(80,50),
              Point(50,50),
              Point(30,40),
              Point(0,40)
          };
  
  
  
          draw-&gt;drawPolygon(Block1,12 ,Color4F(1,222,120,1), 1, Color4F(0,0,1,1));
          } 
          sprite-&gt;addChild(draw, 10); 
  
   }
   else
   {
          CC_SAFE_DELETE(sprite);
   }
  </code></pre>
  
  <p>This is the output of the code it is wrong 
  <img src="https://i.stack.imgur.com/Akk3x.png" alt="The Wrong output"></p>
  
  <p>this is the polygon i like to be drawn ( never mind the colors) 
  <img src="https://i.stack.imgur.com/ZCLKc.png" alt="enter image description here"></p>