[macOS, 3.x] Fix OpenGL color space on HDR displays.

This commit is contained in:
bruvzg 2022-04-13 10:34:09 +03:00
parent 229a8218da
commit 1f51bae294
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38

View File

@ -1612,6 +1612,8 @@ Error OS_OSX::initialize(const VideoMode &p_desired, int p_video_driver, int p_a
[window_view setWantsBestResolutionOpenGLSurface:NO]; [window_view setWantsBestResolutionOpenGLSurface:NO];
} }
[window_object setColorSpace:[NSColorSpace sRGBColorSpace]];
//[window_object setTitle:[NSString stringWithUTF8String:"GodotEnginies"]]; //[window_object setTitle:[NSString stringWithUTF8String:"GodotEnginies"]];
[window_object setContentView:window_view]; [window_object setContentView:window_view];
[window_object setDelegate:window_delegate]; [window_object setDelegate:window_delegate];