Strange drawPoly glitch

Hi, I’m using DrawNode's drawPoly method in a Cocos2d-js v3.6 prototype and I’m getting strange behaviour both in the browser and in native.

Here’s what the graph is looking like:

And here’s what it should look like:

Now, I’ve taken a look at samples/DrawPrimitivesTest and it shows two “4-pointed starts”, one which displays correctly and one that’s bugged just like my drawing. The code has a comment that states "order is important un tesselation is supported.", so I thought it’d be just a matter of reversing the order of my verts, but alas, tha gives me this:

Any help will be much appreciated!

1 Like