Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2011-12-23 11:10:01 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-12-23 11:10:01 +0400
commitac498a6b64ea2f034aa0177894fb25d0401e327b (patch)
tree6329247e9ec72875eab97d1d5ca87b74bbea6c50 /source/gameengine/GamePlayer/ghost/GPG_Application.cpp
parentb59d8c6ba35e43879437e197210bd3900eb56fc9 (diff)
Cleaning up the GPU_extensions_init/exit() code a bit to keep the Blenderplayer from crashing on exit and restart.
Diffstat (limited to 'source/gameengine/GamePlayer/ghost/GPG_Application.cpp')
-rw-r--r--source/gameengine/GamePlayer/ghost/GPG_Application.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
index f9403c9725a..f249510ecc7 100644
--- a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
+++ b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
@@ -789,6 +789,10 @@ void GPG_Application::stopEngine()
void GPG_Application::exitEngine()
{
+ // We only want to kill the engine if it has been initialized
+ if (!m_engineInitialized)
+ return;
+
sound_exit();
if (m_ketsjiengine)
{