author | Sam Lantinga |
Mon, 19 Nov 2018 21:35:59 -0800 | |
changeset 12424 | 6b3a68e3dd06 |
parent 12423 | 6da95eef84a2 |
child 12425 | 266c5fbe0bbd |
1.1 --- a/src/video/cocoa/SDL_cocoawindow.m Mon Nov 19 21:28:52 2018 -0800 1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m Mon Nov 19 21:35:59 2018 -0800 1.3 @@ -224,6 +224,10 @@ 1.4 static void 1.5 ScheduleContextUpdates(SDL_WindowData *data) 1.6 { 1.7 + if (!data || !data->nscontexts) { 1.8 + return; 1.9 + } 1.10 + 1.11 NSOpenGLContext *currentContext = [NSOpenGLContext currentContext]; 1.12 NSMutableArray *contexts = data->nscontexts; 1.13 @synchronized (contexts) {