earlygrey / shapedrawer

A library for libGDX that draws simple shapes using a batch.
MIT License
185 stars 32 forks source link

PolygonBatchManager not drawing after increaseCacheSize #39

Closed TCreutzenberg closed 3 years ago

TCreutzenberg commented 3 years ago

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!

TCreutzenberg commented 3 years ago

I actually found the issue and created a PR to fix this: https://github.com/earlygrey/shapedrawer/pull/40

earlygrey commented 3 years ago

Fixed with #40 merged