Use dispatch_async for -[NSOpenGLContext update]. Fixes #3680
diff --git a/src/video/cocoa/SDL_cocoaopengl.m b/src/video/cocoa/SDL_cocoaopengl.m
index 76d3521..fc200ff 100644
--- a/src/video/cocoa/SDL_cocoaopengl.m
+++ b/src/video/cocoa/SDL_cocoaopengl.m
@@ -135,7 +135,7 @@
if ([NSThread isMainThread]) {
[super update];
} else {
- dispatch_sync(dispatch_get_main_queue(), ^{ [super update]; });
+ dispatch_async(dispatch_get_main_queue(), ^{ [super update]; });
}
}