mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
st/oxr: Enforce 0 session create flags
This commit is contained in:
parent
761c4d7ca8
commit
225bac0cfb
|
@ -459,6 +459,11 @@ oxr_verify_XrSessionCreateInfo(struct oxr_logger* log,
|
||||||
"(createInfo->type)");
|
"(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);
|
XrResult result = oxr_system_verify_id(log, inst, createInfo->systemId);
|
||||||
if (result != XR_SUCCESS) {
|
if (result != XR_SUCCESS) {
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue