Commit: 88b39444a0244921a7f1957bec0960e9affdc30c Author: Julian Eisel Date: Sat Jun 22 22:08:50 2019 +0200 Branches: soc-2019-openxr https://developer.blender.org/rB88b39444a0244921a7f1957bec0960e9affdc30c
Fix error causing sessions to not start correctly With this, the Windows Mixed Reality Portal finally pops up when starting the session. That is how it's supposed to work. After it's initialization phase all you see is black. That's expected too as we don't send anything to the device yet. =================================================================== M intern/ghost/intern/GHOST_XREvent.cpp =================================================================== diff --git a/intern/ghost/intern/GHOST_XREvent.cpp b/intern/ghost/intern/GHOST_XREvent.cpp index 891df19a967..6d53d5b6adb 100644 --- a/intern/ghost/intern/GHOST_XREvent.cpp +++ b/intern/ghost/intern/GHOST_XREvent.cpp @@ -37,7 +37,7 @@ GHOST_TSuccess GHOST_XrEventsHandle(GHOST_XrContext *xr_context) OpenXRData *oxr = &xr_context->oxr; XrEventDataBuffer event_buffer; /* structure big enought to hold all possible events */ - if (!GHOST_XrSessionIsRunning(xr_context)) { + if ((xr_context == NULL) || (oxr->session == XR_NULL_HANDLE)) { return GHOST_kFailure; } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs