1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-06 13:16:52 +02:00

Change return code in case of negative time

I’m not sure what to actually return here anyway, but apparently this
symbol does not always exist.
This commit is contained in:
cochrane
2016-11-19 07:24:59 +01:00
parent cc8853a9ef
commit d764b3c8fa

View File

@@ -223,7 +223,7 @@ CVReturn displayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeStamp *no
// TODO: This should probably get the time from the outputTime parameter
int time = getTime();
if (time <= lastTime)
return kCVReturnUnsupported;
return kCVReturnSuccess;
// TODO: This should probably run the update in a separate thread
// and only do rendering here