Hello.
I'm new to SFML.
I tried to compile the example code from the library setup tutorial.
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
Everything compiled, as expected.
The process was created as well, with 2kiB memory assigned.
However, the window hasn't showed up.
It's not like the window never shows up. If I start one process and I leave it running (without window), then I start another instance of the program, the window often shows up (though not always).
Running the program through debugger however makes the window appear every time.
I read a few posts in the internet stating that it was an old SFML 1.6 issue, related with AMD drivers, that had been fixed in SFML 2.0 but, as I wrote in post title, I am using SFML 2.1.
Is this my graphics card's fault?
Here is the link to the DxDiag content.