Commit 033c0abb58e7aa6ba2bf7ad4952b73d9061f3f59

Learath 2021-03-27T14:04:00

Use dispatch_async for -[NSOpenGLContext update]. Fixes #3680

1
2
3
4
5
6
7
8
9
10
11
12
13
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]; });
     }
 }