From 90df723853c74b7a1cb1b45fdba69ba2f268d888 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 4 Jan 2022 22:47:44 +0000 Subject: [PATCH] st/oxr: Check requirements for EXT_dpad_binding --- src/xrt/state_trackers/oxr/oxr_verify.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xrt/state_trackers/oxr/oxr_verify.c b/src/xrt/state_trackers/oxr/oxr_verify.c index 16f46b938..8f1b6c525 100644 --- a/src/xrt/state_trackers/oxr/oxr_verify.c +++ b/src/xrt/state_trackers/oxr/oxr_verify.c @@ -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; }