Explorar el Código

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

Learath hace 5 años
padre
commit
033c0abb58
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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]; });
     }
 }