I am rendering a lot of text to the screen, and usually it works correctly, but I've found that when I render sf::Shapes too, especially when there are a lot of shapes, the text rendering breaks. Specifically, it looks like either the text texture gets lost or the blending is broken because each glyph is rendered as a filled white square instead of showing the character.
This isn't consistent and it appears that one text can render wrongly while the very next text can appear correctly, with no other rendering taking place between the two. But it only happens when shapes are being drawn in that frame. Commenting out calls to a shape's draw() method fixes the behaviour.
It's as if some part of the rendering state is leaking out from one call to another - but we're just calling draw() on each Drawable without passing in a RenderStates argument, so I would have thought it would reset to normal on each call.
I'm using the default font for all text, but it happened with loaded fonts also (TTF or OTF).
Is this a known bug in SFML? Or if not, is there some way I can help in tracking down what is causing this?
(Using the April 2.0RC build, on Windows 7.)