[Cocos2d-html5] 使用DrawNode 始终画不出
最近学coco2d-html5 碰到画线问题
this._super();
var draw = cc.DrawNode.create();
this.addChild(draw,10);
var vertices2 = [cc.p(60, 170), cc.p(470, 500),cc.p(900,172)];
draw.drawPoly(vertices2, null, 3, cc.c4f(100, 100, 100, 100));
老是报错,Uncaught TypeError: Cannot read property 'r' of null
初学者,求大神解答,