Fix (unreported) broken background mode of Blender (due to OSD cleanup called also in background mode).

This commit is contained in:
Bastien Montagne 2015-11-10 10:37:52 +01:00
parent 738bc300c7
commit 7bb16a5ccf
1 changed files with 2 additions and 2 deletions

View File

@ -546,11 +546,11 @@ void WM_exit_ext(bContext *C, const bool do_python)
(void)do_python;
#endif
if (!G.background) {
#ifdef WITH_OPENSUBDIV
BKE_subsurf_osd_cleanup();
BKE_subsurf_osd_cleanup();
#endif
if (!G.background) {
GPU_global_buffer_pool_free();
GPU_free_unused_buffers();