cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 490 forks source link

Failed to allocate buffer for DrawNode #1841

Open tankgit opened 5 years ago

tankgit commented 5 years ago

When I was using DrawNode to draw a great amount of shapes, only part of them can be rendered, once the amount is over a threshold, DrawNode stop drawing, and send me a warning in console:

Failed to allocate buffer for DrawNode: buffer for 64 vertices requested

Actually, I'm building a drawing-app for users, so each time when user touches somewhere, I call drawSegment() to reflect users touch. After drawing a little while, this issue came out.

update: This issue came out while using webGL. Canvas is ok.

Anyone knows why?