Browse Source

OpenALshutdown called when exiting the game : prevents crash if audio sources are still playing upon shutdown.

capnlove 12 years ago
parent
commit
97d51abed9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      engine/source/platformWin32/winWindow.cc

+ 2 - 2
engine/source/platformWin32/winWindow.cc

@@ -1494,9 +1494,9 @@ void Platform::init()
 //--------------------------------------
 //--------------------------------------
 void Platform::shutdown()
 void Platform::shutdown()
 {
 {
-   sgQueueEvents = false;
-
+   sgQueueEvents = false;   
    setMouseLock( false );
    setMouseLock( false );
+   Audio::OpenALShutdown();
    Video::destroy();
    Video::destroy();
    Input::destroy();
    Input::destroy();
    WinConsole::destroy();
    WinConsole::destroy();