mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/oxr: Fix graphics binding error codes/messages
This commit is contained in:
parent
dab52d319d
commit
acec80da2f
|
@ -327,8 +327,9 @@ oxr_verify_XrSessionCreateInfo(struct oxr_logger* log,
|
|||
return XR_SUCCESS;
|
||||
}
|
||||
|
||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
||||
"createInfo->next->type");
|
||||
return oxr_error(log, XR_ERROR_GRAPHICS_DEVICE_INVALID,
|
||||
"(createInfo->next) Argument chain does not contain "
|
||||
"any known graphics bindings");
|
||||
}
|
||||
|
||||
|
||||
|
@ -340,7 +341,7 @@ oxr_verify_XrGraphicsBindingOpenGLXlibKHR(
|
|||
{
|
||||
if (next->type != XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR) {
|
||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
||||
"createInfo->next->type");
|
||||
" Graphics binding has invalid type");
|
||||
}
|
||||
|
||||
return XR_SUCCESS;
|
||||
|
@ -357,7 +358,7 @@ oxr_verify_XrGraphicsBindingVulkanKHR(struct oxr_logger* log,
|
|||
{
|
||||
if (next->type != XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR) {
|
||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
||||
"createInfo->next->type");
|
||||
" Graphics binding has invalid type");
|
||||
}
|
||||
|
||||
return XR_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue