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:
authorCampbell Barton <ideasman42@gmail.com>2014-06-12 19:05:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-12 19:05:56 +0400
commitce460c61791c7735c64d62061bcdcd0bc207320e (patch)
treea0693b0567032cbd21cba077aed5ca5f47419519 /source/blender/windowmanager/intern/wm_init_exit.c
parent8c2b5ffb118d065af4d34ff84f1493d914d948db (diff)
Fix crash running in background mode
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c8
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();