mirror of https://github.com/encounter/SDL.git
[NSOpenGLContext update[ is prohibited outside the main thread
This commit is contained in:
parent
7e5340c5ac
commit
5b3b55a181
|
@ -66,7 +66,7 @@
|
||||||
int value = SDL_AtomicSet(&self->dirty, 0);
|
int value = SDL_AtomicSet(&self->dirty, 0);
|
||||||
if (value > 0) {
|
if (value > 0) {
|
||||||
/* We call the real underlying update here, since -[SDLOpenGLContext update] just calls us. */
|
/* We call the real underlying update here, since -[SDLOpenGLContext update] just calls us. */
|
||||||
[super update];
|
[super performSelectorOnMainThread:@selector(update) withObject:nil waitUntilDone:NO];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue