From 491662250f5f6dbd8941ea7e4cf4c97afb5cbddb Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 25 Jul 2022 19:15:11 +0200 Subject: [PATCH] Ported: [macOS, 3.x] Fix OpenGL color space on HDR displays. - bruvzg https://github.com/godotengine/godot/commit/1f51bae294c21985be5b2e6609d9df8ef2d35c97 --- platform/osx/os_osx.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index f52df7927..6e5629cae 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1612,6 +1612,8 @@ Error OS_OSX::initialize(const VideoMode &p_desired, int p_video_driver, int p_a [window_view setWantsBestResolutionOpenGLSurface:NO]; } + [window_object setColorSpace:[NSColorSpace sRGBColorSpace]]; + //[window_object setTitle:[NSString stringWithUTF8String:"PandemoniumEnginies"]]; [window_object setContentView:window_view]; [window_object setDelegate:window_delegate];