From 4d9097cafb39ecdc2b8f5e6ba42fe3c9e1d3f20b Mon Sep 17 00:00:00 2001 From: michi_cc Date: Sun, 20 Dec 2009 16:10:44 +0000 Subject: (svn r18573) -Fix [FS#3198]: [OSX] Try to get a generic RGB colour space if getting the system colour profile failed. (tyler) --- src/video/cocoa/wnd_quartz.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm index d99a1877b..76608f8ef 100644 --- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -167,6 +167,8 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace() if (CMGetSystemProfile(&sysProfile) == noErr) { colorSpace = CGColorSpaceCreateWithPlatformColorSpace(sysProfile); CMCloseProfile(sysProfile); + } else { + colorSpace = CGColorSpaceCreateDeviceRGB(); } if (colorSpace == NULL) error("Could not get system colour space. You might need to recalibrate your monitor."); -- cgit v1.2.3-70-g09d2