Minor fix that makes sf::SoundStream less crazy when the internal AL source couldn't be created

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1732 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-12-02 22:26:35 +00:00
parent 0ed20bf130
commit 6ce458939e

View File

@ -221,7 +221,7 @@ void SoundStream::Stream()
}
// Get the number of buffers that have been processed (ie. ready for reuse)
ALint nbProcessed;
ALint nbProcessed = 0;
ALCheck(alGetSourcei(mySource, AL_BUFFERS_PROCESSED, &nbProcessed));
while (nbProcessed--)