(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.
authoregladil
Fri, 18 Apr 2008 21:21:25 +0000
changeset 8982 72152efbb319
parent 8981 dd0cd0e54ac3
child 8983 ea20f3cd2165
(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
--- 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;