Skip to content

Commit

Permalink
cocoa: don't enable sRGB unless it was explicitly requested
Browse files Browse the repository at this point in the history
Fixes #443
  • Loading branch information
rdb committed Nov 9, 2018
1 parent 62ae624 commit f629a5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions panda/src/cocoadisplay/cocoaGraphicsStateGuardian.mm
Expand Up @@ -254,6 +254,11 @@
"Pixel format has " << [format numberOfVirtualScreens] << " virtual screens.\n";
get_properties(_fbprops, format, 0);

// Don't enable sRGB unless it was explicitly requested.
if (!properties.get_srgb_color()) {
_fbprops.set_srgb_color(false);
}

// TODO: print out renderer

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

0 comments on commit f629a5d

Please sign in to comment.