st/oxr: Check requirements for EXT_dpad_binding

This commit is contained in:
Jakob Bornecrantz 2022-01-04 22:47:44 +00:00 committed by Jakob Bornecrantz
parent 6a54b4e6e3
commit 90df723853

View file

@ -418,6 +418,11 @@ oxr_verify_extensions(struct oxr_logger *log, const struct oxr_extension_status
}
#endif
if (extensions->EXT_dpad_binding && !extensions->KHR_binding_modification) {
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
"XR_EXT_dpad_binding requires XR_KHR_binding_modification");
}
return XR_SUCCESS;
}