Fixes OpenAl Error (A004) upon shutdown.

Basically removes the buffers _after_ stopping all sounds.
This commit is contained in:
Ronald Reagan
2014-11-13 01:32:52 -08:00
parent becabb4ed9
commit ab31e10ee3
+2 -1
View File
@@ -268,10 +268,11 @@ void audiomanager::soundcleanup()
mapsounds.shrink(0);
locations.deletecontents();
gamesounds.shrink(0);
bufferpool.clear();
// kill scheduler
sourcescheduler::instance().reset();
bufferpool.clear();
// shutdown openal
alcMakeContextCurrent(NULL);