Skip to content
Permalink
Browse files

[NSOpenGLContext update[ is prohibited outside the main thread

  • Loading branch information
Learath2 committed Mar 20, 2020
1 parent 7e5340c commit 5b3b55a18129c66699c23bc4db5218025f1dc660
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/cocoa/SDL_cocoaopengl.m
@@ -66,7 +66,7 @@ - (void)updateIfNeeded
int value = SDL_AtomicSet(&self->dirty, 0);
if (value > 0) {
/* We call the real underlying update here, since -[SDLOpenGLContext update] just calls us. */
[super update];
[super performSelectorOnMainThread:@selector(update) withObject:nil waitUntilDone:NO];
}
}

0 comments on commit 5b3b55a

Please sign in to comment.