cocoa: cautiously enable sRGB framebuffers on macOS

[skip ci]
This commit is contained in:
rdb 2018-10-28 20:40:55 +01:00
parent 733c7f2352
commit ed96a52703

View File

@ -134,6 +134,12 @@ get_properties(FrameBufferProperties &properties, NSOpenGLPixelFormat* pixel_for
if (accelerated) {
properties.set_force_hardware(1);
}
// Cautiously setting this to true. It appears that macOS framebuffers are
// sRGB-capable, but I don't really know how to verify this.
if (color_size == 32 && !color_float) {
properties.set_srgb_color(true);
}
}
/**