From d764b3c8fa1c9bf94e358d55362e50e1948d42aa Mon Sep 17 00:00:00 2001 From: cochrane Date: Sat, 19 Nov 2016 07:24:59 +0100 Subject: [PATCH] Change return code in case of negative time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m not sure what to actually return here anyway, but apparently this symbol does not always exist. --- src/platform/osx/main.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/osx/main.mm b/src/platform/osx/main.mm index a1e0f18..ed9f9ea 100644 --- a/src/platform/osx/main.mm +++ b/src/platform/osx/main.mm @@ -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