Hello,
I get this output
AL lib: ALc.c:1420: alcDestroyContext(): deleting 1 Source(s)
AL lib: ALc.c:1818: alcCloseDevice(): deleting 3 Buffer(s)
when I run this :
http://pastebin.com/BuVkHpPP#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
int main()
{
sf::Texture texture;
texture.LoadFromFile("data/1440x900.jpg");
sf::Sprite sprite(texture);
sf::Music music;
music.OpenFromFile("data/nice_music.ogg");
music.Play();
sf::RenderWindow window(sf::VideoMode(1440, 900), "SFML window"); // ,sf::Style::Fullscreen);
while (window.IsOpened())
{
sf::Event event;
while (window.PollEvent(event))
{
if (event.Type == sf::Event::Closed)
window.Close();
}
window.Clear();
window.Draw(sprite);
window.Display();
}
return EXIT_SUCCESS;
}
I'm using the lastest revision of SFML2 (don't know how to get the number) on Fedora 16 (amd64), no proprietary drivers and my graphic card is Nvidia GT540M.
I must warm you that if I comment this line
window.Draw(sprite);
it works as expected...
Strange, isn't it ?
Thanx for helping!