--- src/video/cocoa/SDL_cocoawindow.m.orig 2018-11-09 17:10:39.000000000 +0100 +++ src/video/cocoa/SDL_cocoawindow.m 2018-11-09 17:16:32.000000000 +0100 @@ -1175,7 +1175,7 @@ /* Force the graphics context to clear to black so we don't get a flash of white until the app is ready to draw. In practice on modern macOS, this only gets called for window creation and other extraordinary events. */ - self.layer.backgroundColor = NSColor.blackColor.CGColor; + self.layer.backgroundColor = CGColorGetConstantColor(kCGColorBlack); ScheduleContextUpdates((SDL_WindowData *) _sdlWindow->driverdata); SDL_SendWindowEvent(_sdlWindow, SDL_WINDOWEVENT_EXPOSED, 0, 0); }