# HG changeset patch # User egladil # Date 2008-04-18 21:21:25 # Node ID 67b2b7f5486368ce0f1c5429e0a6a2cf81d312b3 # Parent 9a06c748f5e0b7a737fba824583b96e31c78db18 (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. diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm --- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -175,7 +175,8 @@ static CGColorSpaceRef QZ_GetCorrectColo CMCloseProfile(sysProfile); } - assert(colorSpace != NULL); + if (colorSpace == NULL) + error("Could not get system colour space. You might need to recalibrate your monitor."); } return colorSpace;