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:
@@ -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
|
||||
|
Reference in New Issue
Block a user