Skip to content

Commit 09ece37

Browse files
allefantSiegeLord
authored andcommitted
call update from the main thread
1 parent f1f2730 commit 09ece37

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/macosx/osxgl.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,9 +740,8 @@ static void setup_gl(ALLEGRO_DISPLAY *d)
740740
{
741741
_al_ogl_setup_gl(d);
742742

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];
743+
ALLEGRO_DISPLAY_OSX_WIN* dpy = (ALLEGRO_DISPLAY_OSX_WIN*) d;
744+
[dpy->ctx performSelectorOnMainThread:@selector(update) withObject:nil waitUntilDone:YES];
746745
}
747746

748747

0 commit comments

Comments
 (0)