macOS: fix colors appearing oversaturated on P3 displays.

The fix only applies to macOS 11+ when using OpenGL.
This commit is contained in:
slime
2022-09-30 15:17:46 -03:00
committed by Sasha Szpakowski
parent 9963d1247c
commit f6e9277a6d
3 changed files with 31 additions and 2 deletions
+4
View File
@@ -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)