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:
authorJulian Eisel <julian@blender.org>2020-03-30 16:29:17 +0300
committerJulian Eisel <julian@blender.org>2020-03-31 17:49:38 +0300
commitafe707cc3a3d0185b3b750bc9e907838bbea8e0c (patch)
tree2044f79251976968fbd604765d33652f0833e035 /intern/ghost
parentb0bd9b4c70ccdf5d6c2891a543fafd36be0d8af0 (diff)
Fix missing XR space destruction
I think destructing the XrSession would destruct this anyway, but rather have this done explicitly, consistently and in a controlled manner.
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_XrSession.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_XrSession.cpp b/intern/ghost/intern/GHOST_XrSession.cpp
index 53d22cbd679..dbe0846a2ca 100644
--- a/intern/ghost/intern/GHOST_XrSession.cpp
+++ b/intern/ghost/intern/GHOST_XrSession.cpp
@@ -76,6 +76,9 @@ GHOST_XrSession::~GHOST_XrSession()
if (m_oxr->reference_space != XR_NULL_HANDLE) {
CHECK_XR_ASSERT(xrDestroySpace(m_oxr->reference_space));
}
+ if (m_oxr->view_space != XR_NULL_HANDLE) {
+ CHECK_XR_ASSERT(xrDestroySpace(m_oxr->view_space));
+ }
if (m_oxr->session != XR_NULL_HANDLE) {
CHECK_XR_ASSERT(xrDestroySession(m_oxr->session));
}