summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-12 10:50:17 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-12 10:50:17 +0200
commita38f56cfc3fbd1f0132e07577986bcfc5fdbeb63 (patch)
tree73f2c56800e68029278e2461d4376f1300f1e7b2 /platform
parente664d195cbaa5ebc7a9926a8afc432296ff08588 (diff)
[macOS] Fix OpenGL color space on HDR displays.
Diffstat (limited to 'platform')
-rw-r--r--platform/osx/display_server_osx.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/osx/display_server_osx.mm b/platform/osx/display_server_osx.mm
index 2465334f84..27d302a984 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];