Pigeons remaining fix for the soundmanager crashes.

This commit is contained in:
frohlich
2006-04-25 18:47:37 +00:00
parent 6f0baf6ca9
commit 04be9ca670

View File

@@ -91,8 +91,13 @@ SGSoundMgr::SGSoundMgr() {
SG_LOG( SG_GENERAL, SG_ALERT, "Audio initialization failed!" );
SG_LOG( SG_GENERAL, SG_ALERT, " "+string(alutGetErrorString(error)));
working = false;
context = 0;
}
else
{
working = true;
context = alcGetCurrentContext();
}
context = alcGetCurrentContext();
#else
if ( (dev = alcOpenDevice( NULL )) != NULL
&& ( context = alcCreateContext( dev, NULL )) != NULL ) {