From cd7536123b6a9d7edefd96c989d02effe94f29b3 Mon Sep 17 00:00:00 2001 From: egladil Date: Fri, 18 Apr 2008 21:21:25 +0000 Subject: (svn r12776) -Fix: [OSX] In some rare cases when using an uncalibrated monitor the system colour space could not be retrieved. Show an error when this happens instead of just trying an assertion. --- src/video/cocoa/wnd_quartz.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/video') diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm index 6109c46dd..dfb59c31f 100644 --- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -175,7 +175,8 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace() CMCloseProfile(sysProfile); } - assert(colorSpace != NULL); + if (colorSpace == NULL) + error("Could not get system colour space. You might need to recalibrate your monitor."); } return colorSpace; -- cgit v1.2.3-54-g00ecf