[macOS, 3.x] Fix OpenGL color space on HDR displays.  - bruvzg
1f51bae294
This commit is contained in:
Relintai 2022-07-25 19:15:11 +02:00
parent 9017b5bf26
commit 491662250f

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:"PandemoniumEnginies"]]; //[window_object setTitle:[NSString stringWithUTF8String:"PandemoniumEnginies"]];
[window_object setContentView:window_view]; [window_object setContentView:window_view];
[window_object setDelegate:window_delegate]; [window_object setDelegate:window_delegate];