demos: Fix cube ActualTimeLate function
authorLiam Middlebrook <lmiddlebrook@nvidia.com>
Thu, 3 May 2018 22:52:32 +0000 (15:52 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Fri, 4 May 2018 14:29:14 +0000 (08:29 -0600)
commit881fe3904f99b06941676a2dfd2a7ca50dc9a3ef
treeaf24f52dba07c45c48c4484df1d669ea9b722c9e
parent9cfe0e6092f46852ee9bb912676b97054453314b
demos: Fix cube ActualTimeLate function

The ActualTimeLate function in cube.c is supposed to check if a
VkPastPresentationTimingGOOGLE structure indicates that the
presentation happened within a refresh-cycle duration of the
desired presentation time.

However currently ActualTimeLate will always return false, because
it is calculating the presentation deadline as `actual + rdur`.
This change calculated the presentation deadline as
`desired + rdur`.

Reviewed-by: Andy Ritger <aritger@nvidia.com>
demos/cube.c