Hey.
I got a weird problem with SFML 2.0; The screen is flickering heavily on Windows 7 x86 using Radeon HD 6850 Sapphire, compiled with MS VC++ 2010.
When ran on other computers it works perfectly.
This is very minimum code required to reproduce problem:
#include <SFML\Graphics.hpp>
int main()
{
sf::RenderWindow Window;
Window.Create(sf::VideoMode(32, 32, 32), "Test Prozor");
Window.SetFramerateLimit(60);
sf::Sprite Sprite;
sf::Texture Texture;
Texture.LoadFromFile("zeleno.bmp");
Sprite.SetTexture(Texture);
Window.Draw(Sprite);
while (Window.IsOpened())
{
sf::Event Event;
while(Window.PollEvent(Event))
{
if((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Keyboard::Escape))
return 0;
}
Window.Display();
}
}
Any idea why is this happening?