gdx2d icon indicating copy to clipboard operation
gdx2d copied to clipboard

drawAntiAliased circle breaks drawString rendering

Open pmudry opened this issue 5 years ago • 1 comments

Non working example :

g.drawAntiAliasedCircle(...);
g.drawString(10,10, "Pouet");

In this case, the string is not drawn correctly.

Temporary fix is :

g.drawAntiAliasedCircle(...);
g.drawFilledRectangle(0,0,0,00); // Changes current sprite batch
g.drawString(10,10, "Pouet");
g.sbFlush() // Required for proper handling, look in this direction

pmudry avatar Jun 04 '19 12:06 pmudry

public static void fixBug(GdxGraphics g){
  g.drawFilledRectangle(0,0,0,0,0);
  g.sbFlush();
}

As temporary fix

pmudry avatar Jun 04 '19 12:06 pmudry