Skip to content

Commit

Permalink
bugfix: filledRectangle() was missing pushToBatch() call, sometimes p…
Browse files Browse the repository at this point in the history
…roduced strange visual errors in subsequent calls
  • Loading branch information
earlygrey committed Oct 29, 2019
1 parent 87200e3 commit e81ae71
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ void rectangle(float x, float y, float width, float height, float rotation) {
x4(halfWidth * cos - (-halfHeight * sin) + centreX);
y4(halfWidth * sin + (-halfHeight * cos) + centreY);
batchManager.pushQuad();
batchManager.pushToBatch();
}

static class BatchFilledPolygonDrawer extends FilledPolygonDrawer<BatchManager> {
Expand Down

0 comments on commit e81ae71

Please sign in to comment.