[macOS] Fix OpenGL color space on HDR displays.

This commit is contained in:
bruvzg 2022-01-12 10:50:17 +02:00
parent e664d195cb
commit a38f56cfc3
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38
1 changed files with 1 additions and 0 deletions

View File

@ -3575,6 +3575,7 @@ DisplayServerOSX::WindowID DisplayServerOSX::_create_window(WindowMode p_mode, V
[wd.window_object setDelegate:wd.window_delegate]; [wd.window_object setDelegate:wd.window_delegate];
[wd.window_object setAcceptsMouseMovedEvents:YES]; [wd.window_object setAcceptsMouseMovedEvents:YES];
[wd.window_object setRestorable:NO]; [wd.window_object setRestorable:NO];
[wd.window_object setColorSpace:[NSColorSpace sRGBColorSpace]];
if ([wd.window_object respondsToSelector:@selector(setTabbingMode:)]) { if ([wd.window_object respondsToSelector:@selector(setTabbingMode:)]) {
[wd.window_object setTabbingMode:NSWindowTabbingModeDisallowed]; [wd.window_object setTabbingMode:NSWindowTabbingModeDisallowed];