mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-22 14:41:47 +00:00
st/oxr: Better printing of envBlendMode errors
This commit is contained in:
parent
4ea17ce7be
commit
589a4ad3e9
|
@ -663,15 +663,18 @@ oxr_session_frame_end(struct oxr_logger *log,
|
||||||
|
|
||||||
if (blend_mode == 0) {
|
if (blend_mode == 0) {
|
||||||
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
return oxr_error(log, XR_ERROR_VALIDATION_FAILURE,
|
||||||
"(frameEndInfo->environmentBlendMode) "
|
"(frameEndInfo->environmentBlendMode == "
|
||||||
"unknown environment blend mode");
|
"0x%08x) unknown environment blend mode",
|
||||||
|
frameEndInfo->environmentBlendMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((blend_mode & sess->sys->head->hmd->blend_mode) == 0) {
|
if ((blend_mode & sess->sys->head->hmd->blend_mode) == 0) {
|
||||||
|
//! @todo Make integer print to string.
|
||||||
return oxr_error(log,
|
return oxr_error(log,
|
||||||
XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED,
|
XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED,
|
||||||
"(frameEndInfo->environmentBlendMode) "
|
"(frameEndInfo->environmentBlendMode == %u) "
|
||||||
"is not supported");
|
"is not supported",
|
||||||
|
frameEndInfo->environmentBlendMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue