(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 10244 f90b9b2b6d96
parent 10241 4c95503096ac
child 10245 e8220bd92071
(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;