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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-11-10 12:37:52 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-11-10 12:38:41 +0300
commit7bb16a5ccf14604b61cb2776147abb7fb6ad6d42 (patch)
treee2fa74672896266b01ec2b1c36ab4bccec2e1a9c /source/blender/windowmanager
parent738bc300c7596b649a8974428b2569f2ca6483eb (diff)
Fix (unreported) broken background mode of Blender (due to OSD cleanup called also in background mode).
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index d528b658836..94941e92430 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -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();