Temporarily let DirectX take priority over OpenGL
authorJulian Eisel <eiseljulian@gmail.com>
Tue, 16 Jul 2019 19:47:46 +0000 (21:47 +0200)
committerJulian Eisel <eiseljulian@gmail.com>
Tue, 16 Jul 2019 19:48:29 +0000 (21:48 +0200)
OpenGL doesn't work yet. Shouldn't be too difficult to get working, but
I don't have a working OpenXR runtime with OpenGL support to test here.

source/blender/windowmanager/intern/wm_xr.c

index f3c5d415d32ee0d44eec548fcfa1c21c66cd4034..85c99c7897b1248f8c7d1d6eb9d2825d243bbb46 100644 (file)
@@ -99,10 +99,12 @@ bool wm_xr_context_ensure(bContext *C, wmWindowManager *wm)
 
   {
     const GHOST_TXrGraphicsBinding gpu_bindings_candidates[] = {
-        GHOST_kXrGraphicsOpenGL,
+    /* TODO temporarily letting D3D take priority, OpenGL doesn't work yet */
+    // GHOST_kXrGraphicsOpenGL,
 #ifdef WIN32
         GHOST_kXrGraphicsD3D11,
 #endif
+        GHOST_kXrGraphicsOpenGL,
     };
     GHOST_XrContextCreateInfo create_info = {
         .gpu_binding_candidates = gpu_bindings_candidates,