fix mac RTL and app termination deadlock

This commit is contained in:
2019-04-07 11:27:43 +02:00
parent 3611057f18
commit ada1afbac2
4 changed files with 13 additions and 10 deletions

View File

@@ -220,10 +220,8 @@ std::mutex task_mutex;
- (void)terminateGL
{
CGLLockContext([[self openGLContext] CGLContextObj]);
App::I.terminate();
CGLUnlockContext([[self openGLContext] CGLContextObj]);
CVDisplayLinkRelease(dl);
App::I.terminate();
}
// This is the renderer output callback function