diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-02 16:59:12 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-02 16:59:12 +0300 |
commit | 84b8ce32a4b0c000dac2aaff4494f31a5835f5d1 (patch) | |
tree | 17ca4cae29fd00adaf16bda8e0bfe28a202e3563 /source/blender | |
parent | d96842bf1961f7feeef2e9fb93bcf119f75f53a8 (diff) |
Fix crash in background mode after the NDof deadzone commit
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 5 |
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)); |