Hi guys!
I've run into a mysterious problem.
Compiling this following code under linux, with gcc 4.6.3 using SFML 2.0 produces strange output to stderr and doesn't draw the texture:
Code:
#include <SFML/Graphics.hpp>
int main() {
sf::RenderWindow window(sf::VideoMode(800,600,32), "test");
sf::RenderTexture texture;
texture.create(40, 50);
texture.clear(sf::Color::Blue);
texture.display();
window.draw(sf::Sprite(texture.getTexture()));
}
Output (on stderr):
no valid domains remain!
no valid domains remain!
no valid domains remain!
What makes it hard to track down where the output comes from is that if I comment out any of the lines :
- texture.create(40, 50);
- texture.clear(sf::Color::Blue);
- window.draw(sf::Sprite(texture.getTexture()));
the strange output disappears.
Compiling this on windows works as expected.
Does anyone has any idea where do I start to look for the solution?
If you need any more info about my environment, let me know.
Thanks,
R0mai