Fix crash running in background mode

This commit is contained in:
Campbell Barton 2014-06-13 01:05:20 +10:00
parent 8c2b5ffb11
commit ce460c6179
1 changed files with 5 additions and 3 deletions

View File

@ -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();