From 225bac0cfb28008b1179f342095d112312925e66 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Wed, 14 Aug 2019 17:14:59 -0500 Subject: [PATCH] st/oxr: Enforce 0 session create flags --- src/xrt/state_trackers/oxr/oxr_verify.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xrt/state_trackers/oxr/oxr_verify.cpp b/src/xrt/state_trackers/oxr/oxr_verify.cpp index 41ad12465..1fded74c9 100644 --- a/src/xrt/state_trackers/oxr/oxr_verify.cpp +++ b/src/xrt/state_trackers/oxr/oxr_verify.cpp @@ -459,6 +459,11 @@ oxr_verify_XrSessionCreateInfo(struct oxr_logger* log, "(createInfo->type)"); } + if (createInfo->createFlags != 0) { + return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, + " Non-zero session create flags"); + } + XrResult result = oxr_system_verify_id(log, inst, createInfo->systemId); if (result != XR_SUCCESS) { return result;