mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-05 13:28:16 +00:00
st/oxr: Don't use mysterious time variable for error printing
This commit is contained in:
parent
42f5cf4c9d
commit
45e268dd16
|
@ -26,6 +26,7 @@
|
|||
#include "oxr_handle.h"
|
||||
#include "oxr_chain.h"
|
||||
|
||||
|
||||
XrResult
|
||||
oxr_xrCreateSession(XrInstance instance, const XrSessionCreateInfo *createInfo, XrSession *out_session)
|
||||
{
|
||||
|
@ -204,7 +205,8 @@ oxr_xrLocateViews(XrSession session,
|
|||
}
|
||||
|
||||
if (viewLocateInfo->displayTime <= (XrTime)0) {
|
||||
return oxr_error(&log, XR_ERROR_TIME_INVALID, "(time == %" PRIi64 ") is not a valid time.", time);
|
||||
return oxr_error(&log, XR_ERROR_TIME_INVALID, "(time == %" PRIi64 ") is not a valid time.",
|
||||
viewLocateInfo->displayTime);
|
||||
}
|
||||
|
||||
if (viewLocateInfo->viewConfigurationType != sess->sys->view_config_type) {
|
||||
|
|
Loading…
Reference in a new issue