mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] fix transposed tsDiff arguments
This commit is contained in:
parent
b13904ec59
commit
e02ccd7c6f
@ -230,7 +230,7 @@ static int renderThread(void * unused)
|
|||||||
/* only resync the timer if we got an early frame */
|
/* only resync the timer if we got an early frame */
|
||||||
struct timespec now, diff;
|
struct timespec now, diff;
|
||||||
clock_gettime(CLOCK_REALTIME, &now);
|
clock_gettime(CLOCK_REALTIME, &now);
|
||||||
tsDiff(&diff, &now, &time);
|
tsDiff(&diff, &time, &now);
|
||||||
if (diff.tv_sec == 0 && diff.tv_nsec < state.frameTime)
|
if (diff.tv_sec == 0 && diff.tv_nsec < state.frameTime)
|
||||||
{
|
{
|
||||||
resyncCheck = 0;
|
resyncCheck = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user