diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-12 19:05:20 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-12 19:05:56 +0400 |
commit | ce460c61791c7735c64d62061bcdcd0bc207320e (patch) | |
tree | a0693b0567032cbd21cba077aed5ca5f47419519 /source | |
parent | 8c2b5ffb118d065af4d34ff84f1493d914d948db (diff) |
Fix crash running in background mode
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 5dafadc5a47..675eb5e2e3a 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -490,9 +490,11 @@ void WM_exit_ext(bContext *C, const bool do_python) (void)do_python; #endif - GPU_global_buffer_pool_free(); - GPU_free_unused_buffers(); - GPU_extensions_exit(); + if (!G.background) { + GPU_global_buffer_pool_free(); + GPU_free_unused_buffers(); + GPU_extensions_exit(); + } BKE_reset_undo(); |