Pigeons remaining fix for the soundmanager crashes.
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user