st/oxr: Enforce 0 session create flags

This commit is contained in:
Ryan Pavlik 2019-08-14 17:14:59 -05:00
parent 761c4d7ca8
commit 225bac0cfb

View file

@ -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;