st/oxr: Fix one conformance issue with d3d11

This commit is contained in:
Ryan Pavlik 2022-05-25 09:49:20 -05:00 committed by Jakob Bornecrantz
parent 78c4102e90
commit e3874383d0

View file

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