I have an SFML RenderTexture that I am creating like so:
sf::ContextSettings settings;
settings.antialiasingLevel = 8;
this->texture.create(size.x, size.y, settings);
Every frame I am clearing it with transparency and drawing a RoundedRectangleShape on it:
this->texture.clear(sf::Color::Transparent);
sf::RoundedRectangleShape shape(sf::Vector2f(this->size.x, this->size.y), 15, 16);
shape.setFillColor(this->colour.sfml());
this->texture.draw(shape);
this->texture.display();
With the transparent clearing, the corners don't look as smooth as with the background colour:
If I clear it with the background colour using this->texture.clear(sf::Color::Black);, antialiasing works fine and the corners are smooth:

