We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1f2730 commit 09ece37Copy full SHA for 09ece37
src/macosx/osxgl.m
@@ -740,9 +740,8 @@ static void setup_gl(ALLEGRO_DISPLAY *d)
740
{
741
_al_ogl_setup_gl(d);
742
743
- // TODO: This crashes on OSX Catalina, but does not seem to be needed
744
- //ALLEGRO_DISPLAY_OSX_WIN* dpy = (ALLEGRO_DISPLAY_OSX_WIN*) d;
745
- //[dpy->ctx update];
+ ALLEGRO_DISPLAY_OSX_WIN* dpy = (ALLEGRO_DISPLAY_OSX_WIN*) d;
+ [dpy->ctx performSelectorOnMainThread:@selector(update) withObject:nil waitUntilDone:YES];
746
}
747
748
0 commit comments