1 --- src/gui/painting/qpaintengine_mac.cpp.orig 2015-05-07 14:14:43.000000000 +0000
2 +++ src/gui/painting/qpaintengine_mac.cpp
3 @@ -340,13 +340,7 @@ CGColorSpaceRef QCoreGraphicsPaintEngine
6 // Get the color space from the display profile.
7 - CGColorSpaceRef colorSpace = 0;
8 - CMProfileRef displayProfile = 0;
9 - CMError err = CMGetProfileByAVID((CMDisplayIDType)displayID, &displayProfile);
11 - colorSpace = CGColorSpaceCreateWithPlatformColorSpace(displayProfile);
12 - CMCloseProfile(displayProfile);
14 + CGColorSpaceRef colorSpace = CGDisplayCopyColorSpace(displayID);
16 // Fallback: use generic DeviceRGB