st/oxr: Fix some error message formatting in oxr_verify

This commit is contained in:
Ryan Pavlik 2019-06-03 17:48:59 -05:00
parent 0696203858
commit 9c979099e3

View file

@ -276,7 +276,7 @@ oxr_verify_XrSessionCreateInfo(struct oxr_logger* log,
{ {
if (createInfo->type != XR_TYPE_SESSION_CREATE_INFO) { if (createInfo->type != XR_TYPE_SESSION_CREATE_INFO) {
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
"createInfo->type"); "(createInfo->type)");
} }
if (createInfo->next == NULL) { if (createInfo->next == NULL) {
@ -293,7 +293,7 @@ oxr_verify_XrSessionCreateInfo(struct oxr_logger* log,
if (!inst->opengl_enable) { if (!inst->opengl_enable) {
return oxr_error( return oxr_error(
log, XR_ERROR_VALIDATION_FAILURE, log, XR_ERROR_VALIDATION_FAILURE,
"OpenGL " " OpenGL "
"requires " XR_KHR_OPENGL_ENABLE_EXTENSION_NAME); "requires " XR_KHR_OPENGL_ENABLE_EXTENSION_NAME);
} }
return oxr_verify_XrGraphicsBindingOpenGLXlibKHR( return oxr_verify_XrGraphicsBindingOpenGLXlibKHR(
@ -305,7 +305,7 @@ oxr_verify_XrSessionCreateInfo(struct oxr_logger* log,
if (!inst->vulkan_enable) { if (!inst->vulkan_enable) {
return oxr_error( return oxr_error(
log, XR_ERROR_VALIDATION_FAILURE, log, XR_ERROR_VALIDATION_FAILURE,
"Vulkan " " Vulkan "
"requires " XR_KHR_VULKAN_ENABLE_EXTENSION_NAME); "requires " XR_KHR_VULKAN_ENABLE_EXTENSION_NAME);
} }
return oxr_verify_XrGraphicsBindingVulkanKHR( return oxr_verify_XrGraphicsBindingVulkanKHR(