st/oxr: error on displayTime <= 0 in xrEndFrame

This commit is contained in:
Christoph Haag 2020-02-25 03:15:53 +01:00 committed by Jakob Bornecrantz
parent 589a4ad3e9
commit 41e3a6fd17

View file

@ -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;
/*