From 4c5d66c31772101029f2dc3dc2b03477b9848a86 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 19 Mar 2016 22:54:56 -0400 Subject: [PATCH] Made sure GL context isn't activated until it's locked. --- OSBindings/Mac/Clock Signal/Views/CSOpenGLView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OSBindings/Mac/Clock Signal/Views/CSOpenGLView.m b/OSBindings/Mac/Clock Signal/Views/CSOpenGLView.m index 9e08fbd99..30d5d6f72 100644 --- a/OSBindings/Mac/Clock Signal/Views/CSOpenGLView.m +++ b/OSBindings/Mac/Clock Signal/Views/CSOpenGLView.m @@ -133,8 +133,8 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt - (void)performWithGLContext:(dispatch_block_t)action { - [self.openGLContext makeCurrentContext]; CGLLockContext([[self openGLContext] CGLContextObj]); + [self.openGLContext makeCurrentContext]; action(); CGLUnlockContext([[self openGLContext] CGLContextObj]); }