diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-07-09 18:20:01 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-07-09 18:20:01 +0300 |
commit | b21669050567d6cbbf002b4dd5c61766ffa27499 (patch) | |
tree | f17fd71b8d6bca31c6a0768fef4afb94b15de778 /source/blender/windowmanager/intern/wm_xr.c | |
parent | b98896ddd915fe2f2157ee4b837b2943e417a11b (diff) |
Add --debug-xr commandline arg and pass on to GHOST XR contexts
Doesn't do anything yet.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_xr.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_xr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c index 72427442816..3989487075e 100644 --- a/source/blender/windowmanager/intern/wm_xr.c +++ b/source/blender/windowmanager/intern/wm_xr.c @@ -72,10 +72,14 @@ bool wm_xr_context_ensure(wmWindowManager *wm) GHOST_kXrGraphicsD3D11, #endif }; - const GHOST_XrContextCreateInfo create_info = { + GHOST_XrContextCreateInfo create_info = { .gpu_binding_candidates = gpu_bindings_candidates, .gpu_binding_candidates_count = ARRAY_SIZE(gpu_bindings_candidates)}; + if (G.debug & G_DEBUG_XR) { + create_info.context_flag |= GHOST_kXrContextDebug; + } + wm->xr_context = GHOST_XrContextCreate(&create_info); return wm->xr_context != NULL; |