diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-06-19 01:44:42 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-06-19 01:44:42 +0300 |
commit | a8519dbac2b61d7fa240684f3129e1b458d23901 (patch) | |
tree | bcd2caf8eafc5027f2f97225c302a9cca467339e /source/blender/windowmanager/intern/wm.c | |
parent | d15d07c4f6f6cffc4e85056c4ffc04e753ba0f9c (diff) |
Lazy-create XR-context
Creating the context causes the OpenXR loader to try connect to a
runtime. That would involve reading the OS'es active_runtime.json and
dynamic linking based on that. So better avoid doing this on startup.
Also: don't pay for what you don't use!
Diffstat (limited to 'source/blender/windowmanager/intern/wm.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index b3a080d12ed..ddb4dfe2a4a 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -293,22 +293,6 @@ void WM_check(bContext *C) wm->message_bus = WM_msgbus_create(); } -#ifdef WITH_OPENXR - if (wm->xr_context == NULL) { - const eWM_xrGraphicsBinding gpu_bindings_candidates[] = { - WM_XR_GRAPHICS_OPENGL, -# ifdef WIN32 - WM_XR_GRAPHICS_D3D11, -# endif - }; - const wmXRContextCreateInfo create_info = { - .gpu_binding_candidates = gpu_bindings_candidates, - .gpu_binding_candidates_count = ARRAY_SIZE(gpu_bindings_candidates)}; - - wm->xr_context = GHOST_XR_context_create(&create_info); - } -#endif - /* case: fileread */ /* note: this runs in bg mode to set the screen context cb */ if ((wm->initialized & WM_WINDOW_IS_INITIALIZED) == 0) { |