Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/windowmanager/intern/wm.c')
-rw-r--r--source/blender/windowmanager/intern/wm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c
index 77e17ad4687..913b939bb87 100644
--- a/source/blender/windowmanager/intern/wm.c
+++ b/source/blender/windowmanager/intern/wm.c
@@ -52,6 +52,9 @@
#include "wm_event_system.h"
#include "wm_draw.h"
#include "wm.h"
+#ifdef WITH_OPENXR
+# include "GHOST_C-api.h"
+#endif
#include "ED_screen.h"
#include "BKE_undo_system.h"
@@ -374,6 +377,12 @@ void wm_close_and_free(bContext *C, wmWindowManager *wm)
WM_msgbus_destroy(wm->message_bus);
}
+#ifdef WITH_OPENXR
+ if (wm->xr_context != NULL) {
+ GHOST_XrContextDestroy(wm->xr_context);
+ }
+#endif
+
BLI_freelistN(&wm->paintcursors);
WM_drag_free_list(&wm->drags);