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-06-16 03:43:02 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-06-16 03:43:02 +0400
commit1c0a6c646856fca219f44ac3ac89da5da7206fa5 (patch)
treec4971444d0a2fffa0508f97ae2411806b5634592 /source/gameengine/GamePlayer
parenta3e296fc4060ab9aac46a8ec2f18696d6776d653 (diff)
Blenderplayer: Setting G.main to NULL after it's freed to avoid issues later with GPU_free_images()
Diffstat (limited to 'source/gameengine/GamePlayer')
-rw-r--r--source/gameengine/GamePlayer/ghost/GPG_ghost.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
index 31e4b223ff2..14048c70516 100644
--- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
+++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
@@ -408,6 +408,7 @@ int main(int argc, char** argv)
// We load our own G.main, so free the one that initglobals() gives us
free_main(G.main);
+ G.main = NULL;
IMB_init();