gdx2d
gdx2d copied to clipboard
drawAntiAliased circle breaks drawString rendering
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
public static void fixBug(GdxGraphics g){
g.drawFilledRectangle(0,0,0,0,0);
g.sbFlush();
}
As temporary fix