Commit fd85f5748db4852c3ee5f8fc8253c691c7ca89fc

Alex Szpakowski 2016-12-23T22:49:37

Mac: back out commit 3e9b2ae41adf. It causes significant overhead on many GPUs.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m
index 6f60c59..f705a6c 100644
--- a/src/video/cocoa/SDL_cocoawindow.m
+++ b/src/video/cocoa/SDL_cocoawindow.m
@@ -1276,13 +1276,6 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window)
     [nswindow setContentView:contentView];
     [contentView release];
 
-    /* The app's content is likely authored expecting sRGB output. If we don't
-     * specify the window's color space, it will default to the device color
-     * space, which will be P3 on capable displays. The mismatch causes the
-     * content authored in sRGB to appear extremely saturated on the P3 display.
-     */
-    [nswindow setColorSpace:[NSColorSpace sRGBColorSpace]];
-
     /* Allow files and folders to be dragged onto the window by users */
     [nswindow registerForDraggedTypes:[NSArray arrayWithObject:(NSString *)kUTTypeFileURL]];