mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +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:
@@ -311,6 +311,10 @@ bool Window::createWindowAndContext(int x, int y, int w, int h, Uint32 windowfla
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef LOVE_MACOS
|
||||
love::macos::setWindowSRGBColorSpace(window);
|
||||
#endif
|
||||
|
||||
context = SDL_GL_CreateContext(window);
|
||||
|
||||
if (!context)
|
||||
|
||||
Reference in New Issue
Block a user