Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: AL lib: ALc.c:1420: alcDestroyContext()  (Read 3331 times)

0 Members and 1 Guest are viewing this topic.

De Wachter Jonathan

  • Newbie
  • *
  • Posts: 2
    • View Profile
AL lib: ALc.c:1420: alcDestroyContext()
« on: November 09, 2011, 01:38:48 am »
Hello,

I get this output
Quote
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
Quote
#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
Quote
window.Draw(sprite);

it works as expected...

Strange, isn't it ?

Thanx for helping!  :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
AL lib: ALc.c:1420: alcDestroyContext()
« Reply #1 on: November 09, 2011, 07:49:56 am »
Very very strange :?
Laurent Gomila - SFML developer

 

anything