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:
authorJeroen Bakker <jeroen@blender.org>2020-11-06 10:23:13 +0300
committerJeroen Bakker <jeroen@blender.org>2020-11-06 10:23:13 +0300
commit9c34391e0c83fc77828aea931a61e2cfbbe541d3 (patch)
treec2492496c3a6e32fc027164d96eed46094107158 /intern/ghost
parent84bbdfb8af45f98100fcf51a3f77496a47e40abd (diff)
Fix compilation error in GHOST
ELEM macro isn't available in GHOST library.
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_XrSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_XrSession.cpp b/intern/ghost/intern/GHOST_XrSession.cpp
index d4e35f80ed9..73b73a8f046 100644
--- a/intern/ghost/intern/GHOST_XrSession.cpp
+++ b/intern/ghost/intern/GHOST_XrSession.cpp
@@ -222,7 +222,7 @@ GHOST_XrSession::LifeExpectancy GHOST_XrSession::handleStateChangeEvent(
m_oxr->session_state = lifecycle.state;
/* Runtime may send events for apparently destroyed session. Our handle should be NULL then. */
- assert(ELEM(m_oxr->session, XR_NULL_HANDLE, lifecycle.session));
+ assert(m_oxr->session == XR_NULL_HANDLE || m_oxr->session == lifecycle.session);
switch (lifecycle.state) {
case XR_SESSION_STATE_READY: {