diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2011-06-16 03:43:02 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2011-06-16 03:43:02 +0400 |
commit | 1c0a6c646856fca219f44ac3ac89da5da7206fa5 (patch) | |
tree | c4971444d0a2fffa0508f97ae2411806b5634592 /source/gameengine | |
parent | a3e296fc4060ab9aac46a8ec2f18696d6776d653 (diff) |
Blenderplayer: Setting G.main to NULL after it's freed to avoid issues later with GPU_free_images()
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 1 |
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(); |