Im experiencing some weird noise from what i think its the video card, when i run this example code. It changes when i move the mouse, and stops when im clicking the tittle bar (pausing the app) and starts again when i stop doing it. It also does this running the "Window" example and the "Win32" example. Other SFML2 examples like Pong or the opengl one runs well, the problem is with the others. Its very annoying.
My Specs:
XFX Radeon HD6870
AMD Phenom 955
4 gb Ram
#include <SFML/Graphics.hpp>
int main()
{
// Create the main window
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
sf::Texture texture;
if (!texture.loadFromFile("vol.jpg"))
return EXIT_FAILURE;
sf::Sprite sprite(texture);
// Start the game loop
while (window.isOpen())
{
// Process events
sf::Event event;
while (window.pollEvent(event))
{
// Close window : exit
if (event.type == sf::Event::Closed)
window.close();
}
// Clear screen
window.clear();
// Draw the sprite
window.draw(sprite);
// Update the window
window.display();
}
return EXIT_SUCCESS;
}