(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.
--- a/src/video/cocoa/wnd_quartz.mm Fri Apr 18 19:26:52 2008 +0000
+++ b/src/video/cocoa/wnd_quartz.mm Fri Apr 18 21:21:25 2008 +0000
@@ -175,7 +175,8 @@
CMCloseProfile(sysProfile);
}
- assert(colorSpace != NULL);
+ if (colorSpace == NULL)
+ error("Could not get system colour space. You might need to recalibrate your monitor.");
}
return colorSpace;