earlygrey/shapedrawer

PolygonBatchManager not drawing after increaseCacheSize

Closed this issue · 2 comments

The first time the PolygonBatchManager is hitting the vertex-cache-limit and increaseCacheSize is called (drawing the outline and then the filling of a really big circle in my case), the PolygonBatchManager stops drawing anything. When I set the texture region again, it starts working again.
I tried to find the issue but I was not able to locate the bug.

This problem does not occur with SpriteBatch/BatchManager, it only happens with PolygonSpriteBatch/PolygonBatchManager .

Any help would be very appreciated. Thanks you in advance!

I actually found the issue and created a PR to fix this: #40

Fixed with #40 merged