mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
macOS: fix colors appearing oversaturated on P3 displays.
The fix only applies to macOS 11+ when using OpenGL.
This commit is contained in:
@@ -479,12 +479,6 @@ bool Graphics::setMode(void *context, int width, int height, int pixelwidth, int
|
||||
metalLayer.device = device;
|
||||
metalLayer.pixelFormat = isGammaCorrect() ? MTLPixelFormatBGRA8Unorm_sRGB : MTLPixelFormatBGRA8Unorm;
|
||||
|
||||
// Explicitly turn off color matching, for now (eg don't make sRGB content
|
||||
// appear correct on P3 displays). It looks better with color matching, but
|
||||
// having it off matches the OpenGL backend and there's some cost to it.
|
||||
// TODO: revisit this?
|
||||
metalLayer.colorspace = nil;
|
||||
|
||||
// This is set to NO when there are pending screen captures.
|
||||
metalLayer.framebufferOnly = YES;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user