From a38f56cfc3fbd1f0132e07577986bcfc5fdbeb63 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 12 Jan 2022 10:50:17 +0200 Subject: [PATCH] [macOS] Fix OpenGL color space on HDR displays. --- platform/osx/display_server_osx.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/osx/display_server_osx.mm b/platform/osx/display_server_osx.mm index 2465334f842..27d302a984c 100644 --- a/platform/osx/display_server_osx.mm +++ b/platform/osx/display_server_osx.mm @@ -3575,6 +3575,7 @@ DisplayServerOSX::WindowID DisplayServerOSX::_create_window(WindowMode p_mode, V [wd.window_object setDelegate:wd.window_delegate]; [wd.window_object setAcceptsMouseMovedEvents:YES]; [wd.window_object setRestorable:NO]; + [wd.window_object setColorSpace:[NSColorSpace sRGBColorSpace]]; if ([wd.window_object respondsToSelector:@selector(setTabbingMode:)]) { [wd.window_object setTabbingMode:NSWindowTabbingModeDisallowed];