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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-07-02 16:59:12 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-07-02 16:59:12 +0300
commit84b8ce32a4b0c000dac2aaff4494f31a5835f5d1 (patch)
tree17ca4cae29fd00adaf16bda8e0bfe28a202e3563
parentd96842bf1961f7feeef2e9fb93bcf119f75f53a8 (diff)
Fix crash in background mode after the NDof deadzone commit
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index dc36cfbaf57..0515cd01f6f 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -171,12 +171,13 @@ void WM_init(bContext *C, int argc, const char **argv)
/* get the default database, plus a wm */
wm_homefile_read(C, NULL, G.factory_startup, NULL);
- /* sets 3D mouse deadzone */
- WM_ndof_deadzone_set(U.ndof_deadzone);
BLF_lang_set(NULL);
if (!G.background) {
+ /* sets 3D mouse deadzone */
+ WM_ndof_deadzone_set(U.ndof_deadzone);
+
GPU_init();
GPU_set_mipmap(!(U.gameflags & USER_DISABLE_MIPMAP));