DrawNode的使用的问题

我在构造函数里面创建了,DrawNode节点并加入到层中,然后出现这样一个警告:

index.html:1 [.CommandBufferContext]RENDER WARNING: Render count or primcount is 0.
index.html:1 WebGL: too many errors, no more errors will be reported to the console for this context.

第一个警告出现了256次之多。

这是为何?

不上代码鬼知道……

//增加绘制节点
var segmentNode = new cc.DrawNode();
this._segmentParentNode.addChild(segmentNode);

//画线段和点
segmentNode.drawSegment(fromPos, toPos, this._lineWidth, this._lineColor);
segmentNode.drawDot(fromPos, this._dotRadius, this._dotColor);

这两个放到一起没有问题,如果增加绘制节点放到构造函数里面去,初始化后再去画线段和点,就会出现我上面说的问题。