Skip to content

Commit f629a5d

Browse files
committed
cocoa: don't enable sRGB unless it was explicitly requested
Fixes panda3d#443
1 parent 62ae624 commit f629a5d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

panda/src/cocoadisplay/cocoaGraphicsStateGuardian.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@
254254
"Pixel format has " << [format numberOfVirtualScreens] << " virtual screens.\n";
255255
get_properties(_fbprops, format, 0);
256256

257+
// Don't enable sRGB unless it was explicitly requested.
258+
if (!properties.get_srgb_color()) {
259+
_fbprops.set_srgb_color(false);
260+
}
261+
257262
// TODO: print out renderer
258263

259264
_context = [[NSOpenGLContext alloc] initWithFormat:format shareContext:_share_context];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy