Fix #111260: Resolve incorrect interface colors on macOS #111386

Closed
Jason Fielder wants to merge 2 commits from Jason-Fielder/blender:Fix_111260_UpdateDefaultWindowColorspace_MacOS_EDR into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ GHOST_ContextCGL::GHOST_ContextCGL(bool stereoVisual,
*/
m_metalLayer.wantsExtendedDynamicRangeContent = YES;
m_metalLayer.pixelFormat = METAL_FRAMEBUFFERPIXEL_FORMAT_EDR;
const CFStringRef name = kCGColorSpaceExtendedSRGB;
const CFStringRef name = kCGColorSpaceDisplayP3;
CGColorSpaceRef colorspace = CGColorSpaceCreateWithName(name);
m_metalLayer.colorspace = colorspace;
CGColorSpaceRelease(colorspace);

View File

@ -356,7 +356,7 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(GHOST_SystemCocoa *systemCocoa,
*/
m_metalLayer.wantsExtendedDynamicRangeContent = YES;
m_metalLayer.pixelFormat = MTLPixelFormatRGBA16Float;
const CFStringRef name = kCGColorSpaceExtendedSRGB;
const CFStringRef name = kCGColorSpaceDisplayP3;
CGColorSpaceRef colorspace = CGColorSpaceCreateWithName(name);
m_metalLayer.colorspace = colorspace;
CGColorSpaceRelease(colorspace);