mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-21 06:01:43 +00:00
st/oxr: error on displayTime <= 0 in xrEndFrame
This commit is contained in:
parent
589a4ad3e9
commit
41e3a6fd17
|
@ -640,6 +640,12 @@ oxr_session_frame_end(struct oxr_logger *log,
|
|||
" frame not begun with xrBeginFrame");
|
||||
}
|
||||
|
||||
if (frameEndInfo->displayTime <= 0) {
|
||||
return oxr_error(log, XR_ERROR_TIME_INVALID,
|
||||
"(frameEndInfo->displayTime) zero or a "
|
||||
"negative value is not a valid XrTime");
|
||||
}
|
||||
|
||||
struct xrt_compositor *xc = sess->compositor;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue