浏览代码

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

Learath 5 年之前
父节点
当前提交
033c0abb58
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video/cocoa/SDL_cocoaopengl.m

+ 1 - 1
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]; });
     }
 }