[Bf-blender-cvs] [ce460c6] master: Fix crash running in background mode

Campbell Barton noreply at git.blender.org
Thu Jun 12 17:06:23 CEST 2014


Commit: ce460c61791c7735c64d62061bcdcd0bc207320e
Author: Campbell Barton
Date:   Fri Jun 13 01:05:20 2014 +1000
https://developer.blender.org/rBce460c61791c7735c64d62061bcdcd0bc207320e

Fix crash running in background mode

===================================================================

M	source/blender/windowmanager/intern/wm_init_exit.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 5dafadc..675eb5e 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();




More information about the Bf-blender-cvs mailing list