From e3874383d085ba94f5e13a79d4328d7f5ed7da7a Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Wed, 25 May 2022 09:49:20 -0500 Subject: [PATCH] st/oxr: Fix one conformance issue with d3d11 --- src/xrt/state_trackers/oxr/oxr_verify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xrt/state_trackers/oxr/oxr_verify.c b/src/xrt/state_trackers/oxr/oxr_verify.c index 689210dd2..16f46b938 100644 --- a/src/xrt/state_trackers/oxr/oxr_verify.c +++ b/src/xrt/state_trackers/oxr/oxr_verify.c @@ -621,7 +621,8 @@ oxr_verify_XrGraphicsBindingD3D11KHR(struct oxr_logger *log, const XrGraphicsBin return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "Graphics binding has invalid type"); } if (next->device == NULL) { - return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "XrGraphicsBindingD3D11KHR::device cannot be NULL"); + return oxr_error(log, XR_ERROR_GRAPHICS_DEVICE_INVALID, + "XrGraphicsBindingD3D11KHR::device cannot be NULL"); } return XR_SUCCESS; }