diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-01-12 10:50:17 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-01-12 10:50:17 +0200 |
commit | a38f56cfc3fbd1f0132e07577986bcfc5fdbeb63 (patch) | |
tree | 73f2c56800e68029278e2461d4376f1300f1e7b2 /platform | |
parent | e664d195cbaa5ebc7a9926a8afc432296ff08588 (diff) |
[macOS] Fix OpenGL color space on HDR displays.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/osx/display_server_osx.mm | 1 |
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]; |