mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
cocoa: cautiously enable sRGB framebuffers on macOS
[skip ci]
This commit is contained in:
parent
733c7f2352
commit
ed96a52703
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user