Skip to content

Commit

Permalink
[NSOpenGLContext update[ is prohibited outside the main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Learath2 committed Mar 20, 2020
1 parent 7e5340c commit 5b3b55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoaopengl.m
Expand Up @@ -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];
}
}

Expand Down

0 comments on commit 5b3b55a

Please sign in to comment.